$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)) {