cvs: php4(NEW_UI_API) /pear/Date Calc.php
| From: | Alan Knowles | Date: | Wed, 19 Jun 2002 01:52:36 +0000 |
| Subject: | cvs: php4(NEW_UI_API) /pear/Date Calc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4685@lists.php.net to get a copy of this message | ||
alan_k Tue Jun 18 21:52:36 2002 EDT
Modified files: (Branch: NEW_UI_API)
/php4/pear/Date Calc.php
Log:
Fixed Undefined index: 06 in .....
Index: php4/pear/Date/Calc.php
diff -u php4/pear/Date/Calc.php:1.18 php4/pear/Date/Calc.php:1.18.4.1
--- php4/pear/Date/Calc.php:1.18 Mon Jan 14 13:55:24 2002
+++ php4/pear/Date/Calc.php Tue Jun 18 21:52:36 2002
@@ -1432,7 +1432,7 @@
$month = (int)$month;
if(empty($month))
- $month = Date_Calc::dateNow("%m");
+ $month = (int) Date_Calc::dateNow("%m");
$month_names = Date_Calc::getMonthNames();
return $month_names[$month];
@@ -1569,4 +1569,4 @@
} // end class Date_calendar
-?>
\ No newline at end of file
+?>