From e6a9e935a9c49d227ff1693ca8cb8526d0512236 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 29 Jun 2001 23:17:03 +0000 Subject: [PATCH] Fix for bug #437333. --- calendar/inc/class.calendar.inc.php | 2 +- calendar/inc/class.calendar_holiday.inc.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar.inc.php b/calendar/inc/class.calendar.inc.php index b09c7048a9..35251c6d6d 100755 --- a/calendar/inc/class.calendar.inc.php +++ b/calendar/inc/class.calendar.inc.php @@ -448,7 +448,7 @@ class calendar extends calendar_ $this->repeating_event_matches = 0; - if(count($this->repeated_events) <= 0) + if($this->repeated_events == Null) { return False; } diff --git a/calendar/inc/class.calendar_holiday.inc.php b/calendar/inc/class.calendar_holiday.inc.php index a4e92168cd..c193336346 100755 --- a/calendar/inc/class.calendar_holiday.inc.php +++ b/calendar/inc/class.calendar_holiday.inc.php @@ -280,6 +280,11 @@ class calendar_holiday { global $phpgw; + if($this->holidays == Null) + { + return False; + } + $c_holidays = count($this->holidays); for($i=0;$i<$c_holidays;$i++) {