From b73b36d016976533a023ed7ba479fb78b996d988 Mon Sep 17 00:00:00 2001 From: conradverm Date: Mon, 22 Oct 2007 14:59:02 +0000 Subject: [PATCH] KTS-673 "The search algorithm needs some work" Updated. Status dashlet must only show when there are no isssues --- plugins/search2/IndexingStatusDashlet.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/search2/IndexingStatusDashlet.php b/plugins/search2/IndexingStatusDashlet.php index 3d95944..873922d 100644 --- a/plugins/search2/IndexingStatusDashlet.php +++ b/plugins/search2/IndexingStatusDashlet.php @@ -42,7 +42,7 @@ class IndexingStatusDashlet extends KTBaseDashlet function is_active($oUser) { - if (!Permission::userIsSystemAdministrator($oUser)) + if (!Permission::userIsSystemAdministrator()) { return false; } @@ -86,12 +86,11 @@ class IndexingStatusDashlet extends KTBaseDashlet $_SESSION['IndexingStatus']['extractorDiagnosis'] = $this->extractorDiagnosis; } - if (is_null($this->indexerDiagnosis) && empty($this->extractorDiagnosis)) + if (empty($this->indexerDiagnosis) && empty($this->extractorDiagnosis)) { return false; } - return true; } -- libgit2 0.21.4