cvs: php4 /pear/Date Calc.php
| From: | Alan Knowles | Date: | Wed, 19 Jun 2002 01:54:55 +0000 |
| Subject: | cvs: php4 /pear/Date Calc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4686@lists.php.net to get a copy of this message | ||
alan_k Tue Jun 18 21:54:55 2002 EDT
Modified files:
/php4/pear/Date Calc.php
Log:
Fixed Undefined index: 06 in ..... - commit to correct branch
Index: php4/pear/Date/Calc.php
diff -u php4/pear/Date/Calc.php:1.23 php4/pear/Date/Calc.php:1.24
--- php4/pear/Date/Calc.php:1.23 Thu Jun 13 18:09:45 2002
+++ php4/pear/Date/Calc.php Tue Jun 18 21:54:54 2002
@@ -1447,7 +1447,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];