From 767ff5d900fff81686e045f625b50cb75c3109ba Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 29 Mar 2019 13:38:51 +0100 Subject: [PATCH] fix PHP Warning: Use of undefined constant cat_id - assumed '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 4a875457f2..263dce9d51 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -662,7 +662,7 @@ class Sql extends Api\Storage } foreach($GLOBALS['egw']->categories->return_all_children($cat_id) as $cat) { - $cat_filter[] = $this->db->concat("','",cat_id,"','")." $not LIKE '%,$cat,%'"; + $cat_filter[] = $this->db->concat("','", 'cat_id', "','")." $not LIKE '%,$cat,%'"; } $cfilter = '('.implode(' OR ',$cat_filter).')'; if(!empty($not))