From 13506fec4544f78bfe99b5f399b1676c66364336 Mon Sep 17 00:00:00 2001 From: Andrii Kasian Date: Sun, 3 Feb 2013 23:10:48 +0200 Subject: [PATCH] Fixed Issue #105: trying to login to backend bounces back - fixed routing on php 5.4 --- app/code/core/Mage/Core/Controller/Varien/Router/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Core/Controller/Varien/Router/Base.php b/app/code/core/Mage/Core/Controller/Varien/Router/Base.php index cc761c071b5c9..a3090670d66d1 100644 --- a/app/code/core/Mage/Core/Controller/Varien/Router/Base.php +++ b/app/code/core/Mage/Core/Controller/Varien/Router/Base.php @@ -100,7 +100,7 @@ public function collectRoutes($configArea, $useRouterName) $modules = array((string)$routerConfig->args->module); if ($routerConfig->args->modules) { foreach ($routerConfig->args->modules->children() as $customModule) { - if ($customModule) { + if ((string)$customModule) { if ($before = $customModule->getAttribute('before')) { $position = array_search($before, $modules); if ($position === false) {