From e6f3f6029daa9ed67ee4aa790fb881790c7c0afa Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 17 Apr 2013 10:01:19 +0530 Subject: [PATCH] CRM-12365 --- CRM/Contact/BAO/Query.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index e3d5101781..a3657e445b 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -495,10 +495,12 @@ class CRM_Contact_BAO_Query { $trashParamExists = FALSE; $paramByGroup = array(); foreach ( $this->_params as $k => $param ) { - if ( $param[0] == 'contact_is_deleted' ) { + if (!empty($param[0]) && $param[0] == 'contact_is_deleted' ) { $trashParamExists = TRUE; } - $paramByGroup[$param[3]][$k] = $param; + if (!empty($param[3])) { + $paramByGroup[$param[3]][$k] = $param; + } } if ( $trashParamExists ) { -- 2.25.1