From: deb.monish Date: Mon, 14 Mar 2016 10:08:27 +0000 (+0530) Subject: CRM-18224 fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78fe145dd36cad9e283f3e33b0a52ac76fa0d015;p=civicrm-core.git CRM-18224 fix --- diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index 67cf0c624a..12cbfaa4a6 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -349,7 +349,7 @@ SELECT f.id, f.label, f.data_type, } // CRM-14563,CRM-16575 : Special handling of multi-select custom fields - if ($isSerialized && !empty($value) && !strstr($op, 'NULL') && !strstr($op, 'LIKE')) { + if ($isSerialized && !CRM_Utils_System::isNull($value) && !strstr($op, 'NULL') && !strstr($op, 'LIKE')) { $sp = CRM_Core_DAO::VALUE_SEPARATOR; if (strstr($op, 'IN')) { $value = str_replace(",", "$sp|$sp", $value);