Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv29898
Modified Files:
serendipity_functions.inc.php
Log Message:
Fixed bug #753400, Calendar cannot show more than 5 rows, thereby cutting some months down to 29 days
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- serendipity_functions.inc.php 14 Jun 2003 03:14:24 -0000 1.63
+++ serendipity_functions.inc.php 15 Jun 2003 02:20:32 -0000 1.64
@@ -133,12 +133,14 @@
// Print the calendar
$currDay = 1;
- for ($x=0; $x<5; $x++) {
+ for ($x=0; $x<6; $x++) {
// 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";
|