forked from extern/egroupware
Fix error Call to a member function setDate() on boolean
This commit is contained in:
parent
6f29f16b7c
commit
a7fcb77d1b
@ -115,7 +115,7 @@ class Date extends Transformer
|
|||||||
{
|
{
|
||||||
$date = new Api\DateTime($value);
|
$date = new Api\DateTime($value);
|
||||||
}
|
}
|
||||||
if($this->type == 'date-timeonly')
|
if($this->type == 'date-timeonly' && $date)
|
||||||
{
|
{
|
||||||
$date->setDate(1970, 1, 1);
|
$date->setDate(1970, 1, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user