mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +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');
|
||||
}
|
||||
// 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user