From 10523934048a99a30d32f56e64f46089a3d0af91 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 25 Nov 2014 18:21:06 +0530 Subject: [PATCH] minor fix --- CRM/Contribute/BAO/Query.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 4948fff554..ac9f02240b 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -321,6 +321,9 @@ class CRM_Contribute_BAO_Query { case 'contribution_trxn_id': case (strpos($name, '_amount') !== FALSE): case (strpos($name, '_date') !== FALSE): + if (!$value) { + break; + } $qillName = $name; $pseudoExtraParam = NULL; if (in_array($name, array('financial_type', 'contribution_status', 'contribution_payment_instrument'))) { @@ -369,6 +372,9 @@ class CRM_Contribute_BAO_Query { case 'contribution_pcp_made_through_id': case 'contribution_soft_credit_type_id': + if (!$value) { + break; + } $qillName = $name; if ($name == 'contribution_pcp_made_through_id') { $qillName = $name = 'pcp_id'; -- 2.25.1