From: Tyler A. <fi...@us...> - 2001-07-27 21:07:07
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory usw-pr-cvs1:/tmp/cvs-serv11938/functions Modified Files: date.php Log Message: Warning removal Index: date.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/date.php,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- date.php 2001/04/19 17:57:28 1.23 +++ date.php 2001/07/27 21:07:04 1.24 @@ -123,6 +123,11 @@ // the 3 times it was getting called by calling the functions // getHour, getMinute, and getSecond. // + if (! isset($dateParts[1])) $dateParts[1] = ''; + if (! isset($dateParts[2])) $dateParts[2] = ''; + if (! isset($dateParts[3])) $dateParts[3] = ''; + if (! isset($dateParts[4])) $dateParts[4] = ''; + if (! isset($dateParts[5])) $dateParts[5] = ''; if (intval(trim($dateParts[0])) > 0) { $string = $dateParts[0] . ' ' . $dateParts[1] . ' ' . $dateParts[2] . ' ' . $dateParts[3]; |