Fix category search when category ID is sent as an array in (addressbook advanced search) again

This commit is contained in:
Jörg Lehrke 2010-06-29 16:45:01 +00:00
parent 6391dcf517
commit 04983df258

View File

@ -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 // fix cat_id criteria to search in comma-separated multiple cats and return subcats
if (is_array($criteria) && ($cats = $criteria['cat_id'])) 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']); unset($criteria['cat_id']);
} }
// fix cat_id filter to search in comma-separated multiple cats and return subcats // fix cat_id filter to search in comma-separated multiple cats and return subcats