From 7df8c9ccc9f6c6df732bc7cb42a7f99ae2eb9e3c Mon Sep 17 00:00:00 2001 From: seek3r Date: Sat, 2 Jun 2001 22:01:39 +0000 Subject: [PATCH] fixed problem with trying to use count() on the return of an array in php3 --- calendar/inc/class.calendar.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar.inc.php b/calendar/inc/class.calendar.inc.php index a41c912140..814aebdaec 100755 --- a/calendar/inc/class.calendar.inc.php +++ b/calendar/inc/class.calendar.inc.php @@ -459,7 +459,8 @@ class calendar extends calendar_ $search_date_dow = date('w',$datetime); $search_beg_day = mktime(0,0,0,$search_date_month,$search_date_day,$search_date_year); @reset($this->repeated_events); - $r_events = count($this->repeated_events); + $repeated = $this->repeated_event; + $r_events = count($repeated); for ($i=0;$i<$r_events;$i++) { $rep_events = $this->repeating_events[$i];