From 5d5f6cbcd22772ee7bf16cc9e810b7ace5f9edfb Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 4 Apr 2022 09:46:44 +0200 Subject: [PATCH] Fix some logical inconsistencies --- application/views/scripts/layout/menu.phtml | 2 +- library/Icinga/Web/Widget/SearchDashboard.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/application/views/scripts/layout/menu.phtml b/application/views/scripts/layout/menu.phtml index 1fbc24f49..82af85750 100644 --- a/application/views/scripts/layout/menu.phtml +++ b/application/views/scripts/layout/menu.phtml @@ -6,7 +6,7 @@ use Icinga\Web\Widget\SearchDashboard; $searchDashboard = new SearchDashboard(); $searchDashboard->setUser($this->Auth()->getUser()); -if (! $searchDashboard->search('dummy')->getActiveHome()->getEntry('search')->hasEntries()): ?> +if ($searchDashboard->search('dummy')->getActiveHome()->getEntry('search')->hasEntries()): ?>