From 0809f068ace9b42fb62184241a8d8956bb45f6f6 Mon Sep 17 00:00:00 2001 From: mitagmio Date: Thu, 8 Feb 2018 15:23:51 +0300 Subject: [PATCH] Update Modules.php A PHP Error was encountered Severity: Notice Message: Only variables should be passed by reference Filename: MX/Modules.php Line Number: 83 --- application/third_party/MX/Modules.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/third_party/MX/Modules.php b/application/third_party/MX/Modules.php index 8abeb3e..9a78c57 100644 --- a/application/third_party/MX/Modules.php +++ b/application/third_party/MX/Modules.php @@ -80,7 +80,8 @@ public static function load($module) { (is_array($module)) ? list($module, $params) = each($module) : $params = NULL; /* get the requested controller class name */ - $alias = strtolower(end(explode('/', $module))); + $explode = explode('/', $module); + $alias = strtolower(end($explode)); /* return an existing controller from the registry */ if (isset(self::$registry[$alias])) return self::$registry[$alias]; @@ -223,4 +224,4 @@ public static function parse_routes($module, $uri) { } } } -} \ No newline at end of file +}