Fixed sql error with empty array in agent view

Former-commit-id: 5a7655d97d28179793a9c029460837568f926128
This commit is contained in:
danielmaya 2018-12-10 15:14:56 +01:00
parent 8419ada94c
commit b9aa474eb3
1 changed files with 3 additions and 0 deletions

View File

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