From 1654fc8ffbcae2423851f9fb106ea78b075efbe0 Mon Sep 17 00:00:00 2001 From: David Siegfried Date: Wed, 8 Mar 2023 15:53:56 +0000 Subject: prevent php-warnings, closes #2299 Closes #2299 Merge request studip/studip!1520 --- app/views/settings/statusgruppen/index.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/settings/statusgruppen/index.php b/app/views/settings/statusgruppen/index.php index 3e2e19c..c51f78f 100644 --- a/app/views/settings/statusgruppen/index.php +++ b/app/views/settings/statusgruppen/index.php @@ -18,27 +18,27 @@ @@ -57,16 +57,16 @@ $role): ?> -
+

- 0): ?> + 0): ?> + class="link "> @@ -78,11 +78,11 @@ @@ -94,8 +94,8 @@ 'inst_id' => $inst_id, 'role_id' => $role_id, 'institute' => Institute::find($inst_id), - 'datafields' => $institute['datafields'][$role_id], - 'role' => $role['role'], + 'datafields' => $institute['datafields'][$role_id] ?? [], + 'role' => $role['role'] ?? null, ]) ?>

@@ -105,7 +105,7 @@ - have_perm('admin') && !$locked): ?> + have_perm('admin') && empty($locked)): ?> render_partial('settings/statusgruppen/assign', compact('admin_insts')) ?> -- cgit v1.0