From b5b2cd88ad3210d6173898ac2d1c29715a3ef2e1 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Fri, 1 Sep 2023 12:29:26 +0000
Subject: [PATCH] prevent php8-warnings, closes #3125

Closes #3125

Merge request studip/studip!2107
---
 app/views/resources/_common/_grouped_room_list.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/resources/_common/_grouped_room_list.php b/app/views/resources/_common/_grouped_room_list.php
index 66ca47f4075..f3d6b627d0f 100644
--- a/app/views/resources/_common/_grouped_room_list.php
+++ b/app/views/resources/_common/_grouped_room_list.php
@@ -42,7 +42,7 @@
                                     <? foreach ($building_group['rooms'] as $resource) : ?>
                                         <?
                                         $room_link = '';
-                                        if ($link_template) {
+                                        if (!empty($link_template)) {
                                             $room_link = $controller->link_for(
                                                 sprintf(
                                                     $link_template,
-- 
GitLab