diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-06-26 11:34:38 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-06-27 09:52:06 +0200 |
| commit | 70f2a0d0fb832eb4c3135fc61f4de758fb79a1fe (patch) | |
| tree | df6001f17250de2675bbcc265c7928f513849278 | |
| parent | 39fb06d5c2df733133f6c9bd458b7ad0a0bd803b (diff) | |
prevent php warnings in global search administration, fixes #5667
Closes #5667
Merge request studip/studip!4287
| -rw-r--r-- | app/controllers/globalsearch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/globalsearch.php b/app/controllers/globalsearch.php index 4a198a2..b7653a4 100644 --- a/app/controllers/globalsearch.php +++ b/app/controllers/globalsearch.php @@ -162,8 +162,8 @@ class GlobalSearchController extends AuthenticatedController foreach (Request::getArray('modules') as $module) { $config[$module['class']] = [ - 'active' => (bool)$module['active'], - 'fulltext' => is_a($module['class'], 'GlobalSearchFulltext', true) && $module['fulltext'] + 'active' => !empty($module['active']), + 'fulltext' => is_a($module['class'], 'GlobalSearchFulltext', true) && !empty($module['fulltext']) ]; } |
