From 4ec9a686051a2550689c437b35be8cf91193b7ea Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Wed, 24 Jul 2024 08:39:18 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: David Siegfried <david.siegfried@uni-vechta.de>
---
 app/views/resources/resource/_add_edit_form.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/resources/resource/_add_edit_form.php b/app/views/resources/resource/_add_edit_form.php
index 47a41328272..b0214378d91 100644
--- a/app/views/resources/resource/_add_edit_form.php
+++ b/app/views/resources/resource/_add_edit_form.php
@@ -14,7 +14,7 @@
             <legend><?= _('Grunddaten') ?></legend>
             <label>
                 <?= _('Name') ?>
-                <input type="text" name="name" value="<?= isset($name) ? htmlReady($name) : null ?>">
+                <input type="text" name="name" value="<?= !empty($name) ? htmlReady($name) : '' ?>">
             </label>
             <label>
                 <?= _('Beschreibungstext') ?>
-- 
GitLab