mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:18:54 +01:00
Silence warning about time in array format by passing it to constructor
This commit is contained in:
parent
f4927d7e0b
commit
9c29079ddf
@ -497,7 +497,7 @@ class DateTime extends \DateTime
|
||||
$date = null;
|
||||
|
||||
// If numeric, just let normal constructor do it
|
||||
if(is_numeric($time))
|
||||
if(is_numeric($time) || is_array($time))
|
||||
{
|
||||
return new DateTime($time);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user