From c47465a7329afaa32f57dd51103298b5057f4e71 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 21 May 2015 14:04:04 +0200 Subject: [PATCH] lib/filter: Fix check against unset search columns refs #8241 --- library/Icinga/Web/Widget/FilterEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 07640872b..2d64e4c2b 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -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;