fix PHP 8.0 error: Undefined constant "EGroupware\Api\Contacts\cat_id"

This commit is contained in:
Ralf Becker 2021-10-11 18:40:21 +02:00
parent 98e00f08d0
commit 044aae3cf8

View File

@ -742,7 +742,7 @@ class Sql extends Api\Storage
$cat_filter = array();
foreach(is_array($cats) ? $cats : (is_numeric($cats) ? array($cats) : explode(',',$cats)) as $cat)
{
if (is_numeric($cat)) $cat_filter[] = $this->db->concat("','",cat_id,"','")." LIKE '%,$cat,%'";
if (is_numeric($cat)) $cat_filter[] = $this->db->concat("','", 'cat_id', "','")." LIKE '%,$cat,%'";
}
return $cat_filter;
}