From c756fdef2063e3eacef68b7fc3a48d98daaf7f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= <brueckner@data-quest.de> Date: Wed, 27 Sep 2023 11:18:20 +0000 Subject: [PATCH] check for empty string, fixes #1374 Closes #1374 Merge request studip/studip!2203 --- app/views/profile/working_place.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profile/working_place.php b/app/views/profile/working_place.php index 20df9587578..9df91e4bd8b 100644 --- a/app/views/profile/working_place.php +++ b/app/views/profile/working_place.php @@ -17,7 +17,7 @@ $fields = [ </a> <? foreach ($fields as $key => $label): ?> - <? if ($institute[$key]): ?> + <? if (trim($institute[$key])): ?> <br> <strong><?= htmlReady($label) ?>:</strong> <?= htmlReady($institute[$key]) ?> -- GitLab