BasketSnapshot: do not double-filter

fixes #1854
This commit is contained in:
Thomas Gelf 2019-09-20 00:44:54 +02:00
parent 906f1b3616
commit 75b78c5ddb
1 changed files with 1 additions and 2 deletions

View File

@ -409,8 +409,7 @@ class BasketSnapshot extends DbObject
foreach ($filter as $column => $value) {
$select->where("$column = ?", $value);
}
}
if (! $dummy->isGroup()
} elseif (! $dummy->isGroup()
// TODO: this is ugly.
&& ! $dummy instanceof IcingaDependency
&& ! $dummy instanceof IcingaTimePeriod