CIVI-28 Notice fixes
authorEdsel <edsel.lopez@jmaconsulting.biz>
Tue, 14 Apr 2015 06:24:00 +0000 (11:54 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 21 Sep 2015 10:42:44 +0000 (16:12 +0530)
CRM/Contact/BAO/Query.php

index f28c61a68b60fcdb57f30350f6bd06b576974dd8..47a98924571ced15f285190baf9b1ffd75e614dc 100644 (file)
@@ -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);