From 9af058a8d9b037afda22f3c66140712567ebecd7 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Fri, 14 Oct 2022 08:59:15 +0000
Subject: [PATCH] explicitly compare to the empty string, fixes #1669

Closes #1669

Merge request studip/studip!1075
---
 lib/models/Abschluss.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/models/Abschluss.php b/lib/models/Abschluss.php
index e222feb3765..1c4fbe6fc2c 100644
--- a/lib/models/Abschluss.php
+++ b/lib/models/Abschluss.php
@@ -339,7 +339,7 @@ class Abschluss extends ModuleManagementModelTreeItem implements PrivacyObject
 
     public function getDisplayName($options = self::DISPLAY_DEFAULT)
     {
-        if ($this->name_kurz) {
+        if ($this->name_kurz != '') {
             return sprintf('%s (%s)', $this->name, $this->name_kurz);
         } else {
             return $this->name;
-- 
GitLab