From b85467dd2635ffa7473b18e1049ba2318a3239bd Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 26 Apr 2010 14:31:55 +0000 Subject: [PATCH] Use enanced searching for link queries also --- addressbook/inc/class.addressbook_bo.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index 2b05caaeb2..4f48bb4fe8 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -1181,10 +1181,7 @@ class addressbook_bo extends addressbook_so $limit = false; if ($pattern) { - foreach($this->columns_to_search as $col) - { - $criteria[$col] = is_array($pattern) ? $pattern['search'] : $pattern; - } + $criteria = is_array($pattern) ? $pattern['search'] : $pattern; } if($options['start'] || $options['num_rows']) { $limit = array($options['start'], $options['num_rows']);