diff --git a/application/third_party/MX/Router.php b/application/third_party/MX/Router.php index 58e09a0..de401a9 100755 --- a/application/third_party/MX/Router.php +++ b/application/third_party/MX/Router.php @@ -236,10 +236,12 @@ protected function _set_module_path(&$_route) public function set_class($class) { $suffix = $this->config->item('controller_suffix'); - if (strpos($class, $suffix) === FALSE) + + if (!empty($suffix) && strpos($class, $suffix) === FALSE) { $class .= $suffix; } + parent::set_class($class); } -} \ No newline at end of file +}