mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
Silence warning about time in array format by passing it to constructor
This commit is contained in:
parent
09b6d37a04
commit
b475edc7a2
@ -497,7 +497,7 @@ class DateTime extends \DateTime
|
|||||||
$date = null;
|
$date = null;
|
||||||
|
|
||||||
// If numeric, just let normal constructor do it
|
// If numeric, just let normal constructor do it
|
||||||
if(is_numeric($time))
|
if(is_numeric($time) || is_array($time))
|
||||||
{
|
{
|
||||||
return new DateTime($time);
|
return new DateTime($time);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user