mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix Call to a member function format() on null caused by 9810077eab
This commit is contained in:
parent
d2d7040721
commit
af6fe077dd
@ -535,6 +535,10 @@ class calendar_rrule implements Iterator
|
||||
*/
|
||||
public function valid($use_just_date=false)
|
||||
{
|
||||
if (!$this->enddate)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if ($use_just_date)
|
||||
{
|
||||
return $this->current->format('Ymd') <= $this->enddate->format('Ymd');
|
||||
|
Loading…
Reference in New Issue
Block a user