$status = $value;
}
- if (count($val) > 1) {
+ if (count($val) > 0) {
$op = 'IN';
$status = "({$status})";
}
}
}
else {
- $names[] = $statusTypes[$value];
+ if (!empty($value)) {
+ $names[] = $statusTypes[$value];
+ }
}
$query->_qill[$grouping][] = ts('Participant Status %1', array(1 => $op)) . ' ' . implode(' ' . ts('or') . ' ', $names);
$names = array();
foreach ($val as $id => $dontCare) {
- $names[] = $roleTypes[$id];
+ if (!empty($roleTypes[$id]) ) {
+ $names[] = $roleTypes[$id];
+ }
}
if (!empty($names)) {
CRM_Core_Form_Date::buildDateRange($form, 'event', 1, '_start_date_low', '_end_date_high', ts('From'), FALSE);
$status = CRM_Event_PseudoConstant::participantStatus(NULL, NULL, 'label');
- asort($status);
foreach ($status as $id => $Name) {
$form->_participantStatus = &$form->addElement('checkbox', "participant_status_id[$id]", NULL, $Name);
}