Fixed sql error with empty array in agent view
Former-commit-id: 5a7655d97d28179793a9c029460837568f926128
This commit is contained in:
parent
8419ada94c
commit
b9aa474eb3
|
@ -808,8 +808,11 @@ function tags_get_acl_tags_event_condition($acltags, $meta = false, $force_group
|
|||
$tags_condition = $group_condition . " AND (" . implode(" OR ", $tags_condition_array) . ")";
|
||||
$condition[] = "($tags_condition)\n";
|
||||
}
|
||||
|
||||
if (!empty($condition)) {
|
||||
$condition = implode(' OR ', $condition);
|
||||
} else {
|
||||
$condition = '';
|
||||
}
|
||||
|
||||
if (!empty($without_tags)) {
|
||||
|
|
Loading…
Reference in New Issue