[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.368,1.369
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sat Aug 28 08:00:16 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv22771
Modified Files:
lib-common.php
Log Message:
Avoid emitting an initial <br> in the Upcoming Events block when personal calendars have been switched off.
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.368
retrieving revision 1.369
diff -C2 -d -r1.368 -r1.369
*** lib-common.php 26 Aug 2004 03:35:27 -0000 1.368
--- lib-common.php 28 Aug 2004 12:00:12 -0000 1.369
***************
*** 3997,4000 ****
--- 3997,4001 ----
$eventsFound = 0;
+ $skipFirstBreak = false;
for( $z = 1; $z <= $iterations; $z++ )
***************
*** 4021,4024 ****
--- 4022,4026 ----
{
$headline = true; // no headline needed
+ $skipFirstBreak = true;
}
***************
*** 4078,4084 ****
}
! $retval .= '<br><b>' . $dayName1 . '</b> <small>' . $abbrDate1 . '</small>';
! // If different start and end Dates, then display end date:
if( $abbrDate1 != $abbrDate2 )
{
--- 4080,4095 ----
}
! if( $skipFirstBreak )
! {
! $skipFirstBreak = false;
! }
! else
! {
! $retval .= '<br>';
! }
! $retval .= '<b>' . $dayName1 . '</b> <small>'
! . $abbrDate1 . '</small>';
! // If different start and end dates, then display end date:
if( $abbrDate1 != $abbrDate2 )
{
More information about the geeklog-cvs
mailing list