From 25cc088b1a22734942597165abc4e660d59a6ae5 Mon Sep 17 00:00:00 2001 From: Edsel Date: Mon, 20 Apr 2015 17:06:03 +0530 Subject: [PATCH] CIVI-28 Fixed fatal error when no permissions are specified --- CRM/Financial/BAO/FinancialType.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Financial/BAO/FinancialType.php b/CRM/Financial/BAO/FinancialType.php index 9135d4fcef..322b789568 100644 --- a/CRM/Financial/BAO/FinancialType.php +++ b/CRM/Financial/BAO/FinancialType.php @@ -247,10 +247,10 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { if ($component == 'membership') { self::getAvailableMembershipTypes($types, 'view'); $column = "membership_type_id"; - if (empty($types)) { - $whereClauses .= " AND civicrm_{$component}.{$column} IN (0)"; - return; - } + } + if (empty($types)) { + $whereClauses .= " AND civicrm_{$component}.{$column} IN (0)"; + return; } $whereClauses .= " AND civicrm_{$component}.{$column} IN (". implode(',' , array_keys($types)) .")"; } -- 2.25.1