Merge remote-tracking branch 'origin/master' into bugfix/dashboard-rework-7751

This commit is contained in:
Marius Hein 2014-11-20 12:48:28 +01:00
commit d62d487251
1 changed files with 4 additions and 1 deletions

View File

@ -162,7 +162,10 @@ class DbQuery extends SimpleQuery
$parts = array(); $parts = array();
if (! $filter->isEmpty()) { if (! $filter->isEmpty()) {
foreach ($filter->filters() as $f) { foreach ($filter->filters() as $f) {
$parts[] = $this->renderFilter($f, $level + 1); $filterPart = $this->renderFilter($f, $level + 1);
if ($filterPart !== '') {
$parts[] = $filterPart;
}
} }
if ($level > 0) { if ($level > 0) {
$str .= ' (' . implode($op, $parts) . ') '; $str .= ' (' . implode($op, $parts) . ') ';