fixed problem with trying to use count() on the return of an array in php3

This commit is contained in:
seek3r 2001-06-02 22:01:39 +00:00
parent 75ac394d14
commit 7df8c9ccc9

View File

@ -459,7 +459,8 @@ class calendar extends calendar_
$search_date_dow = date('w',$datetime); $search_date_dow = date('w',$datetime);
$search_beg_day = mktime(0,0,0,$search_date_month,$search_date_day,$search_date_year); $search_beg_day = mktime(0,0,0,$search_date_month,$search_date_day,$search_date_year);
@reset($this->repeated_events); @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++) for ($i=0;$i<$r_events;$i++)
{ {
$rep_events = $this->repeating_events[$i]; $rep_events = $this->repeating_events[$i];