diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index d8a19748f1..51591bf7c0 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -779,6 +779,7 @@ class calendar_so } if(isset($params['sql_filter']['cal_id'])) { + if (!is_array($params['query'])) $params['query'] = []; $params['query']['cal_id'] = $params['sql_filter']['cal_id']; $where[] = $this->db->column_data_implode(", ", [$this->cal_table.'.cal_id' => $params['sql_filter']['cal_id']], True, False); unset($params['sql_filter']['cal_id']);