From 2dc74a87aea22293c21e526ada8199a844939612 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 27 May 2015 14:56:29 +0100 Subject: [PATCH] CheckStyle Result fixes --- CRM/Core/BAO/CustomQuery.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index b3f86c5059..e7842491a5 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -407,12 +407,13 @@ SELECT label, value 'Multi-Select State/Province', 'Multi-Select Country', ); - + if (in_array($field['html_type'], $specialHTMLType)) { - $val = "[[:cntrl:]]".$val."[[:cntrl:]]"; + $val = "[[:cntrl:]]" . $val . "[[:cntrl:]]"; $op = 'RLIKE'; - } elseif ($wildcard) { + } + elseif ($wildcard) { $val = "[[:cntrl:]]%$val%[[:cntrl:]]"; $op = 'LIKE'; } -- 2.25.1