mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
fix PHP 8.0 error: Undefined constant "EGroupware\Api\Contacts\cat_id"
This commit is contained in:
parent
98e00f08d0
commit
044aae3cf8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user