From d5c702c369430ef6ac5f734784f6d9b5a3a8b3c5 Mon Sep 17 00:00:00 2001 From: Alex Killing Date: Tue, 30 Jul 2024 12:04:00 +0200 Subject: [PATCH] 41814: Entering https://help.ilias.de/ gets error --- .../Administration/class.ilObjRepositorySettings.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Services/Repository/Administration/class.ilObjRepositorySettings.php b/Services/Repository/Administration/class.ilObjRepositorySettings.php index c2357379b84d..c84341c80b2c 100644 --- a/Services/Repository/Administration/class.ilObjRepositorySettings.php +++ b/Services/Repository/Administration/class.ilObjRepositorySettings.php @@ -138,14 +138,17 @@ public static function getNewItemGroups(): array $set = $ilDB->query("SELECT * FROM il_new_item_grp ORDER BY pos"); while ($row = $ilDB->fetchAssoc($set)) { + if ($row['titles'] === null) { + continue; + } if ((int) $row["type"] === self::NEW_ITEM_GROUP_TYPE_GROUP) { $row["titles"] = unserialize($row["titles"], ["allowed_classes" => false]); - $title = $row["titles"][$usr_lng]; - if (!$title) { - $title = $row["titles"][$def_lng]; + $title = $row["titles"][$usr_lng] ?? ""; + if ($title == "") { + $title = $row["titles"][$def_lng] ?? ""; } - if (!$title) { + if ($title == "") { $title = array_shift($row["titles"]); } $row["title"] = $title;