diff --git a/src/QUI/Menu/Independent/Smarty.php b/src/QUI/Menu/Independent/Smarty.php
index 16990f5b1d7bab59b1e0037fe6753fadebf57ecf..467a9b2385654b1571c6d3bb67010e50acbd18a1 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 {