From 402fdf82179a019ca636ea6f992e813aa65dc500 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 11 Apr 2017 10:25:44 +0200 Subject: [PATCH] * [FIX] Fixed regular expression handling. Related #22 --- inc/SMD/Core/sysMonDash.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/SMD/Core/sysMonDash.class.php b/inc/SMD/Core/sysMonDash.class.php index 942a1c6..8dfc4fe 100644 --- a/inc/SMD/Core/sysMonDash.class.php +++ b/inc/SMD/Core/sysMonDash.class.php @@ -190,16 +190,16 @@ public function getBackends() private function filterItems(EventInterface $item) { if ($this->getFilterHosts($item) === false || $this->getFilterServices($item) === false) { - return false; + return ($item->isAcknowledged() + || $this->getFilterIsFlapping($item) + || $this->getFilterState($item) + || $this->getFilterUnreachable($item) + || $this->getFilterScheduled($item) + || $this->getFilterLevel($item) + ); } - return ($item->isAcknowledged() - || $this->getFilterIsFlapping($item) - || $this->getFilterState($item) - || $this->getFilterUnreachable($item) - || $this->getFilterScheduled($item) - || $this->getFilterLevel($item) - ); + return true; } /**