fix PHP 8.0 TypeError: Cannot access offset of type string on string

This commit is contained in:
Ralf Becker 2021-11-10 11:54:18 +01:00
parent 408bcbb26b
commit 2604a077d3

View File

@ -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']);