From 044aae3cf82c67034f57c57890decfe83d28db7d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Oct 2021 18:40:21 +0200 Subject: [PATCH] fix PHP 8.0 error: Undefined constant "EGroupware\Api\Contacts\cat_id" --- api/src/Contacts/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts/Sql.php b/api/src/Contacts/Sql.php index e46970b78a..a6748459fc 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -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; }