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:01 +0200 |
| commit | adc57f77994957a78e63dfcee4c82d362ceb416b (patch) | |
| tree | 5c0cbf554df0967f81fc9c2f11e4f5dbd25eb8f8 | |
| parent | d970867b154c5718e8b7c92c78205224791f367a (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']) ]; } |
