Fix error Illegal string offset

This commit is contained in:
Hadi Nategh 2021-03-10 13:25:52 +01:00
parent 864b896ad6
commit cdfc29a519

View File

@ -777,7 +777,7 @@ class calendar_so
$private_filter = '(cal_public=1 OR cal_public=0 AND '.$this->db->expression($this->cal_table, array('cal_owner' => $params['private_grants'])) . ')';
$where[] = $private_filter;
}
if($params['sql_filter']['cal_id'])
if(isset($params['sql_filter']['cal_id']))
{
$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);