From: Edsel Date: Tue, 14 Apr 2015 06:24:00 +0000 (+0530) Subject: CIVI-28 Notice fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ecb39dfd095f0c0ed6c807ba849c2fefbe72bbb3;p=civicrm-core.git CIVI-28 Notice fixes --- 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);