Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv31071
Modified Files:
serendipity_functions.inc.php
Log Message:
Making changes to last commit to avoid empty table (<tr>) rows
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- serendipity_functions.inc.php 15 Jun 2003 02:20:32 -0000 1.64
+++ serendipity_functions.inc.php 15 Jun 2003 02:36:38 -0000 1.65
@@ -134,13 +134,15 @@
// Print the calendar
$currDay = 1;
for ($x=0; $x<6; $x++) {
-
- // Prepare row
+
+ // Break out if we are out of days
+ if ($currDay>$nrOfDays) {
+ break;
+ }
+
+ // Prepare row
print ("<TR CLASS='serendipity_calendar'>");
for ($y=0; $y<7; $y++) {
- if ($currDay>$nrOfDays) {
- break;
- }
// Be able to print borders nicely
$cellProp = "";
if ($y==0) $cellProp = "FirstInRow";
|