Commit b73b36d016976533a023ed7ba479fb78b996d988
1 parent
2f8af956
KTS-673
"The search algorithm needs some work" Updated. Status dashlet must only show when there are no isssues Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7453 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
3 deletions
plugins/search2/IndexingStatusDashlet.php
| @@ -42,7 +42,7 @@ class IndexingStatusDashlet extends KTBaseDashlet | @@ -42,7 +42,7 @@ class IndexingStatusDashlet extends KTBaseDashlet | ||
| 42 | 42 | ||
| 43 | function is_active($oUser) | 43 | function is_active($oUser) |
| 44 | { | 44 | { |
| 45 | - if (!Permission::userIsSystemAdministrator($oUser)) | 45 | + if (!Permission::userIsSystemAdministrator()) |
| 46 | { | 46 | { |
| 47 | return false; | 47 | return false; |
| 48 | } | 48 | } |
| @@ -86,12 +86,11 @@ class IndexingStatusDashlet extends KTBaseDashlet | @@ -86,12 +86,11 @@ class IndexingStatusDashlet extends KTBaseDashlet | ||
| 86 | $_SESSION['IndexingStatus']['extractorDiagnosis'] = $this->extractorDiagnosis; | 86 | $_SESSION['IndexingStatus']['extractorDiagnosis'] = $this->extractorDiagnosis; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | - if (is_null($this->indexerDiagnosis) && empty($this->extractorDiagnosis)) | 89 | + if (empty($this->indexerDiagnosis) && empty($this->extractorDiagnosis)) |
| 90 | { | 90 | { |
| 91 | return false; | 91 | return false; |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | - | ||
| 95 | return true; | 94 | return true; |
| 96 | } | 95 | } |
| 97 | 96 |