From 41b6db48b938e3eedd24f807f4c7c1ccd6186b43 Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Mon, 25 Apr 2022 12:26:00 +0200
Subject: [PATCH] feat: quiqqer/package-menu#11

---
 src/QUI/Menu/Independent/Smarty.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/QUI/Menu/Independent/Smarty.php b/src/QUI/Menu/Independent/Smarty.php
index 16990f5..467a9b2 100644
--- a/src/QUI/Menu/Independent/Smarty.php
+++ b/src/QUI/Menu/Independent/Smarty.php
@@ -19,7 +19,8 @@ class Smarty
     public static function menu($params, $smarty): string
     {
         if (empty($params['menuId']) || empty($params['menuDesign'])) {
-            return;
+            QUI\System\Log::addError('No menuId or menuDesign param for {menu} smarty function');
+            return '';
         }
 
         try {
-- 
GitLab