cvs: php4 /pear/Date Calc.php
| From: | Martin Jansen | Date: | Mon, 14 Jan 2002 18:55:25 +0000 |
| Subject: | cvs: php4 /pear/Date Calc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1933@lists.php.net to get a copy of this message | ||
mj Mon Jan 14 13:55:25 2002 EDT
Modified files:
/php4/pear/Date Calc.php
Log:
* Fix for bug #15032.
Index: php4/pear/Date/Calc.php
diff -u php4/pear/Date/Calc.php:1.17 php4/pear/Date/Calc.php:1.18
--- php4/pear/Date/Calc.php:1.17 Thu Dec 27 07:37:36 2001
+++ php4/pear/Date/Calc.php Mon Jan 14 13:55:24 2002
@@ -1429,6 +1429,8 @@
function getMonthFullname($month)
{
+ $month = (int)$month;
+
if(empty($month))
$month = Date_Calc::dateNow("%m");
@@ -1453,6 +1455,8 @@
function getMonthAbbrname($month,$length=3)
{
+ $month = (int)$month;
+
if(empty($month))
$month = Date_Calc::dateNow("%m");
return substr(Date_Calc::getMonthFullname($month), 0, $length);