cvs: phpweb /include layout.inc

From: Date: Sat, 10 Feb 2007 14:20:39 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34204@lists.php.net to get a copy of this message
bjori Sat Feb 10 14:20:39 2007 UTC Modified files: /phpweb/include layout.inc Log: Fixed bug#40357 (Warning message in UG-Events List) # Caused by, now removed, error message in strtotime("") in PHP 5.0.* http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.257&r2=1.258&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.257 phpweb/include/layout.inc:1.258 --- phpweb/include/layout.inc:1.257 Wed Feb 7 18:23:11 2007 +++ phpweb/include/layout.inc Sat Feb 10 14:20:38 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.257 2007/02/07 18:23:11 bjori Exp $ */ +/* $Id: layout.inc,v 1.258 2007/02/10 14:20:38 bjori Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -507,8 +507,8 @@ -3 => '3rd Last' ); - $sday = isset($event['start']) ? strtotime($event['start']) : 0; - $eday = isset($event['end']) ? strtotime($event['end']) : 0; + $sday = (isset($event['start']) && !empty($event['start'])) ? strtotime($event['start']) : 0; + $eday = (isset($event['end']) && !empty($event['end'])) ? strtotime($event['end']) : 0; ?> <table border="0" cellspacing="0" cellpadding="3" width="100%"> <tr bgcolor="#dddddd"><td>

« previous php.mirrors (#34204) next »