mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Avoid error in case $date is not set
This commit is contained in:
parent
211efdda68
commit
2122f7db0f
@ -210,7 +210,7 @@ class etemplate_widget_date extends etemplate_widget_transformer
|
|||||||
$valid = $date->format('ts');
|
$valid = $date->format('ts');
|
||||||
}
|
}
|
||||||
// string with formatting letters like for php's date() method
|
// string with formatting letters like for php's date() method
|
||||||
elseif (($valid = $date->format($this->attrs['dataformat'])))
|
elseif ($date && ($valid = $date->format($this->attrs['dataformat'])))
|
||||||
{
|
{
|
||||||
// Nothing to do here
|
// Nothing to do here
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user