From 6a34bae5ddd9532dba7f218b6fcd7b511716fef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Tue, 29 Jun 2010 16:43:49 +0000 Subject: [PATCH] Fix category search when category ID is sent as an array in (addressbook advanced search) again --- addressbook/inc/class.addressbook_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index 9969ca8ad4..56d8840235 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -249,7 +249,7 @@ class addressbook_sql extends so_sql_cf // fix cat_id criteria to search in comma-separated multiple cats and return subcats if (is_array($criteria) && ($cats = $criteria['cat_id'])) { - $criteria += $this->_cat_search($criteria['cat_id'],$not); + $criteria = array_merge($criteria, $this->_cat_search($criteria['cat_id'])); unset($criteria['cat_id']); } // fix cat_id filter to search in comma-separated multiple cats and return subcats