From 0ba53d3de73505bb20b7ae2af9f144d16897f247 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 17 Apr 2014 21:32:55 +1200 Subject: [PATCH] eNotice fix --- CRM/Member/BAO/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Member/BAO/Query.php b/CRM/Member/BAO/Query.php index d4dcf6be90..3205f221fe 100644 --- a/CRM/Member/BAO/Query.php +++ b/CRM/Member/BAO/Query.php @@ -295,7 +295,9 @@ class CRM_Member_BAO_Query { $names = array(); $membershipTypes = CRM_Member_PseudoConstant::membershipType(); foreach ($value as $id => $dontCare) { - $names[] = $membershipTypes[$id]; + if(!empty($membershipTypes[$id])) { + $names[] = $membershipTypes[$id]; + } } $query->_qill[$grouping][] = ts('Membership Type %1', array(1 => $op)) . ' ' . implode(' ' . ts('or') . ' ', $names); $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_membership.membership_type_id", -- 2.25.1