lib/filter: Fix check against unset search columns

refs #8241
This commit is contained in:
Eric Lippmann 2015-05-21 14:04:04 +02:00
parent 57328aa6ed
commit c47465a732
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class FilterEditor extends AbstractWidget
$filter = $this->getFilter();
if ($search !== null) {
if ($this->searchColumns === null) {
if (empty($this->searchColumns)) {
if (strpos($search, '=') === false) {
Notification::error(mt('monitoring', 'Cannot search here'));
return $this;