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

Chuck Hagenbuch chuck at horde.org
Tue Jun 19 01:39:58 UTC 2007


Quoting "C. Wirichs" <c_wirichs at vnet24.com>:

> 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

I don't see this (PHP 5.2.3, though I don't see how it matters on that  
line). Are you using HEAD of both Horde and Whups?

> 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.

No, casting an array to an int is not a fix...

-chuck


More information about the dev mailing list