mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-05 17:52:03 +02: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)
|
public function valid($use_just_date=false)
|
||||||
{
|
{
|
||||||
|
if (!$this->enddate)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ($use_just_date)
|
if ($use_just_date)
|
||||||
{
|
{
|
||||||
return $this->current->format('Ymd') <= $this->enddate->format('Ymd');
|
return $this->current->format('Ymd') <= $this->enddate->format('Ymd');
|
||||||
|
Loading…
Reference in New Issue
Block a user