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

prevent php8 warning, fixes #4941

Closes #4941

Merge request studip/studip!3708
parent b461f2bb
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @var ModuleManagementModelTreeItem $area
* @var array|null $values
* @var string $course_id
*/
$_id = htmlReady(implode('_', (array) $area->getId()));
?>
<li id="lvgruppe_search_<?= $_id ?>">
......@@ -6,7 +12,7 @@ $_id = htmlReady(implode('_', (array) $area->getId()));
<?= Icon::create('arr_2left', Icon::ROLE_SORT)->asInput([
'name' => "assign[{$_id}]",
'onclick' => "return STUDIP.MVV.CourseWizard.assignNode('{$_id}')",
'class' => in_array($_id, $values['studyareas'] ?: []) ? 'hidden-no-js' : '',
'class' => in_array($_id, $values['studyareas'] ?? []) ? 'hidden-no-js' : '',
]) ?>
<?= htmlReady($area->getDisplayName()) ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment