projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b9e5cd
)
eNotice fix
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Thu, 17 Apr 2014 09:32:55 +0000
(21:32 +1200)
committer
Eileen McNaughton
<eileen@fuzion.co.nz>
Thu, 17 Apr 2014 09:37:29 +0000
(21:37 +1200)
CRM/Member/BAO/Query.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Member/BAO/Query.php
b/CRM/Member/BAO/Query.php
index d4dcf6be9063f31db086e8abd09f4bc1b5359b14..3205f221fe6faa32b0893910df7358f507f748ea 100644
(file)
--- 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",