From 65e21bfa686b9d2ecdfe46cfa8efd307068809f1 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 20 Oct 2015 13:55:12 +0530 Subject: [PATCH] minor fix --- CRM/Contact/Form/Search/Advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Search/Advanced.php b/CRM/Contact/Form/Search/Advanced.php index a4abacda18..9b62331ffb 100644 --- a/CRM/Contact/Form/Search/Advanced.php +++ b/CRM/Contact/Form/Search/Advanced.php @@ -360,7 +360,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { } $this->_formValues[$element] = array('IN' => $value); } - elseif ((substr($formValues[$key], 0, 1) == '%') || (substr($formValues[$key], -1, 1) == '%')) { + elseif ((substr($value, 0, 1) == '%') || (substr($value, -1, 1) == '%')) { $this->_formValues[$element] = array('LIKE' => $value); } } -- 2.25.1