Skip to content
Snippets Groups Projects
Commit a74e3860 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

fixes #2741

Closes #2741

Merge request studip/studip!1857
parent 41fe699c
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,9 @@ class ExternModuleTemplatePersondetails extends ExternModule { ...@@ -257,7 +257,9 @@ class ExternModuleTemplatePersondetails extends ExternModule {
$global_view = true; $global_view = true;
$selected_item_ids = $this->config->getValue('SelectInstitutes', 'institutesselected'); $selected_item_ids = $this->config->getValue('SelectInstitutes', 'institutesselected');
// at least one institute has to be selected in the configuration // 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 ? // is user lecturer ?
$current_semester = get_sem_num(time()); $current_semester = get_sem_num(time());
$stm = DBManager::get()->prepare(sprintf( $stm = DBManager::get()->prepare(sprintf(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment