From 839e18cc823b92f763093e6e23854d2e9eb0b882 Mon Sep 17 00:00:00 2001 From: Jurian Sluiman Date: Tue, 23 Apr 2013 10:12:06 +0200 Subject: [PATCH] Return string when no item is active --- src/Common/View/Helper/SubMenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/View/Helper/SubMenu.php b/src/Common/View/Helper/SubMenu.php index e34343e..a049d6b 100644 --- a/src/Common/View/Helper/SubMenu.php +++ b/src/Common/View/Helper/SubMenu.php @@ -82,7 +82,7 @@ public function __toString() $menu->setRenderInvisible($flag); if (!$active) { - return; + return ''; } $container = $active['page'];