From c6a83c93ebd3c80e47d4ec50353a8981891896aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Thu, 10 Nov 2005 12:22:55 +0000 Subject: [PATCH] small fix for ! search in cf --- addressbook/inc/class.socontacts.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.socontacts.inc.php b/addressbook/inc/class.socontacts.inc.php index 4624e03fbc..5ba721d082 100755 --- a/addressbook/inc/class.socontacts.inc.php +++ b/addressbook/inc/class.socontacts.inc.php @@ -15,7 +15,7 @@ /** * General storage object of the adressbook * - * @package adressbook + * @package addressbook * @author Cornelius Weiss * @copyright (c) 2005 by Cornelius Weiss * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License @@ -172,13 +172,13 @@ class socontacts //echo 'socontacts::search->criteria:'; _debug_array($criteria); // We just want to deal with generalized vars, to simpyfie porting of this code to so_sql later... $this->main_id = $this->somain->contacts_id; - + // seperate custom fields from main fields foreach ($criteria as $crit_key => $crit_val) { if(!(isset($this->somain->db_data_cols [$crit_key]) || isset($this->somain->db_key_cols [$crit_key]))) { - if(strpos($crit_key,'#') !== false) + if(strpos($crit_key,'#') !== false && $crit_key{0} != '!' ) { $extra_crit_key = substr($crit_key,1); $criteria_extra[$extra_crit_key][$this->extra_key] = $extra_crit_key;