From 7a332f8763eeed81145c7d589e435b900fd69bb8 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Wed, 3 Jul 2024 12:21:15 +0000
Subject: [PATCH] prevent php-warnings in PluginManager, closes #4363

Closes #4363

Merge request studip/studip!3163
---
 lib/plugins/engine/PluginManager.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/plugins/engine/PluginManager.class.php b/lib/plugins/engine/PluginManager.class.php
index f08b5fa4064..6297492ee20 100644
--- a/lib/plugins/engine/PluginManager.class.php
+++ b/lib/plugins/engine/PluginManager.class.php
@@ -86,7 +86,7 @@ class PluginManager
                 'core'                    => $plugin['pluginpath'] === '',
                 'automatic_update_url'    => $plugin['automatic_update_url'],
                 'automatic_update_secret' => $plugin['automatic_update_secret'],
-                'description'             => $plugin['description'],
+                'description'             => $plugin['description'] ?? '',
                 'description_mode'        => $plugin['description_mode'] ?? null,
                 'highlight_until'         => $plugin['highlight_until'] ?? null,
                 'highlight_text'          => $plugin['highlight_text'] ?? null,
-- 
GitLab