This should fix the problem with variable passed to each() not an array on line 108.

This commit is contained in:
skeeter 2002-02-07 02:14:20 +00:00
parent 0731c2f111
commit 3e2136f1b8

View File

@ -103,13 +103,13 @@
$sql .= (!$this->is_group?$this->owner:implode(',',$this->g_owner)); $sql .= (!$this->is_group?$this->owner:implode(',',$this->g_owner));
} }
$member_groups = $GLOBALS['phpgw']->accounts->membership($this->user); // $member_groups = $GLOBALS['phpgw']->accounts->membership($this->user);
@reset($member_groups); // @reset($member_groups);
while(list($key,$group_info) = each($member_groups)) // while(list($key,$group_info) = each($member_groups))
{ // {
$member[] = $group_info['account_id']; // $member[] = $group_info['account_id'];
} // }
@reset($member); // @reset($member);
// $sql .= ','.implode(',',$member).') '; // $sql .= ','.implode(',',$member).') ';
// $sql .= 'AND (phpgw_cal.datetime <= '.$starttime.') '; // $sql .= 'AND (phpgw_cal.datetime <= '.$starttime.') ';
// $sql .= 'AND (((phpgw_cal_repeats.recur_enddate >= '.$starttime.') AND (phpgw_cal_repeats.recur_enddate <= '.$endtime.')) OR (phpgw_cal_repeats.recur_enddate=0))) ' // $sql .= 'AND (((phpgw_cal_repeats.recur_enddate >= '.$starttime.') AND (phpgw_cal_repeats.recur_enddate <= '.$endtime.')) OR (phpgw_cal_repeats.recur_enddate=0))) '