From a74e3860d341799bfc46e25f45ef094f81557b05 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 16 Jun 2023 07:53:46 +0000 Subject: [PATCH] fixes #2741 Closes #2741 Merge request studip/studip!1857 --- .../modules/ExternModuleTemplatePersondetails.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/extern/modules/ExternModuleTemplatePersondetails.class.php b/lib/extern/modules/ExternModuleTemplatePersondetails.class.php index 288b0d5ec74..a3dbd790387 100644 --- a/lib/extern/modules/ExternModuleTemplatePersondetails.class.php +++ b/lib/extern/modules/ExternModuleTemplatePersondetails.class.php @@ -257,7 +257,9 @@ class ExternModuleTemplatePersondetails extends ExternModule { $global_view = true; $selected_item_ids = $this->config->getValue('SelectInstitutes', 'institutesselected'); // at least one institute has to be selected in the configuration - if (is_array($selected_item_ids)) { + if (!is_array($selected_item_ids)) { + // default to always show user for now + } else if ($this->config->getValue('Main', 'onlylecturers')) { // is user lecturer ? $current_semester = get_sem_num(time()); $stm = DBManager::get()->prepare(sprintf( -- GitLab