From f98195e4fa1a5eec9eaa63a859f36d41089e7b89 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Fri, 15 Mar 2024 15:57:02 +0100
Subject: [PATCH] re #93

---
 views/presenting/details.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/views/presenting/details.php b/views/presenting/details.php
index f4f8452..5407a6a 100755
--- a/views/presenting/details.php
+++ b/views/presenting/details.php
@@ -237,11 +237,11 @@ if ($image) {
                 <a style="opacity: 0.3;" title="<?= $GLOBALS['perm']->have_perm("autor") ? _("Geben Sie die erste Bewertung ab.") : _("Noch keine bewertung abgegeben.") ?>" <?= ($GLOBALS['perm']->have_perm("autor") && !$marketplugin->isWritable()) ? 'href="' . $controller->url_for('presenting/review/' . $marketplugin->getId()) . '" data-dialog' : "" ?>>
                 <? $icon_prefix = "blue_" ?>
             <? endif ?>
-                <?= Icon::create($plugin->getPluginURL()."/assets/".$icon_prefix."star.svg")->asImg("50px") ?>
-                <?= Icon::create($plugin->getPluginURL()."/assets/".$icon_prefix."star.svg")->asImg("50px") ?>
-                <?= Icon::create($plugin->getPluginURL()."/assets/".$icon_prefix."star.svg")->asImg("50px") ?>
-                <?= Icon::create($plugin->getPluginURL()."/assets/".$icon_prefix."star.svg")->asImg("50px") ?>
-                <?= Icon::create($plugin->getPluginURL()."/assets/".$icon_prefix."star.svg")->asImg("50px") ?>
+                <?= Icon::create($plugin->getPluginURL()."/assets/".($icon_prefix ?? '')."star.svg")->asImg("50px") ?>
+                <?= Icon::create($plugin->getPluginURL()."/assets/".($icon_prefix ?? '')."star.svg")->asImg("50px") ?>
+                <?= Icon::create($plugin->getPluginURL()."/assets/".($icon_prefix ?? '')."star.svg")->asImg("50px") ?>
+                <?= Icon::create($plugin->getPluginURL()."/assets/".($icon_prefix ?? '')."star.svg")->asImg("50px") ?>
+                <?= Icon::create($plugin->getPluginURL()."/assets/".($icon_prefix ?? '')."star.svg")->asImg("50px") ?>
             <? if (!$marketplugin->isWritable()) : ?>
                 </a>
             <? endif ?>
-- 
GitLab