[dev] Whups: date() expects paramter 2 to be long

C. Wirichs c_wirichs at vnet24.com
Tue Jun 19 00:45:15 UTC 2007


Hello,
 
with PHP 5.2.1, whenever I edit a ticket in whups, I get: 
Warning: date() expects paramter 2 to be long, array given in /horde/whups/lib/Forms/EditTicket.php on line 21
 
A possible solution is to add "(int)" to paramter 2 of date() on line 21 in EditTicket.php:
$start_year = min($start_year, date('Y', (int)$vars->get('due')));

You may want to add this "fix" to cvs/HEAD.
 
Regards,
Christian


More information about the dev mailing list