From ecb39dfd095f0c0ed6c807ba849c2fefbe72bbb3 Mon Sep 17 00:00:00 2001 From: Edsel Date: Tue, 14 Apr 2015 11:54:00 +0530 Subject: [PATCH] CIVI-28 Notice fixes --- CRM/Contact/BAO/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index f28c61a68b..47a9892457 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -499,7 +499,9 @@ class CRM_Contact_BAO_Query { if (array_key_exists('civicrm_membership', $this->_whereTables)) { $component = 'membership'; } - CRM_Financial_BAO_FinancialType::buildPermissionedClause($this->_whereClause, $component); + if (isset($component)) { + CRM_Financial_BAO_FinancialType::buildPermissionedClause($this->_whereClause, $component); + } $this->_fromClause = self::fromClause($this->_tables, NULL, NULL, $this->_primaryLocation, $this->_mode); $this->_simpleFromClause = self::fromClause($this->_whereTables, NULL, NULL, $this->_primaryLocation, $this->_mode); -- 2.25.1