diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 3e40d2f0c6..317af680c4 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -964,8 +964,9 @@ ORDER BY cal_user_type, cal_usre_id 'cal_user_id' => $ids, )); } - $where[] = '('.implode(' OR ',$to_or).')'; + $where[1] = '('.implode(' OR ',$to_or).')'; $this->db->delete($this->user_table,$where,__LINE__,__FILE__,'calendar'); + unset($where[1]); } }