From 35452923915e28bf825fc0454056bce17ba91f49 Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Mon, 6 Mar 2023 11:01:00 +0000 Subject: [PATCH] prevent php-warnings, refs #2266 Merge request studip/studip!1493 --- app/views/settings/statusgruppen/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/statusgruppen/index.php b/app/views/settings/statusgruppen/index.php index bef23e0db3a..3e2e19ced4e 100644 --- a/app/views/settings/statusgruppen/index.php +++ b/app/views/settings/statusgruppen/index.php @@ -8,7 +8,7 @@ <h1><?= _('Zuordnungen zu Einrichtungen') ?></h1> </header> <? foreach ($institutes as $inst_id => $institute): ?> - <article class="<?= ContentBoxHelper::classes($inst_id) ?><? if (Request::get('type') == 'institute' && Request::get('open') == $role_id) : ?>open<? endif ?>"> + <article class="<?= ContentBoxHelper::classes($inst_id) ?><? if (Request::get('type') === 'institute' && isset($role_id) && Request::get('open') === $role_id) : ?>open<? endif ?>"> <header> <h1> <a href="<?= ContentBoxHelper::href($inst_id) ?>"> -- GitLab