From 051fe48685ea025b366bdc5fbafe1c7616097165 Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 28 Oct 2005 08:33:35 +0000 Subject: [PATCH] [1247] Author: phpnut Date: 3:32:21 AM, Friday, October 28, 2005 Message: Another fix for error git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1248 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/dispatcher.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 3d6b40577..9658f0d54 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -138,7 +138,14 @@ class Dispatcher extends Object require_once(CAKE.'app_controller.php'); $controller =& new AppController(); $params['action'] = 'missingController'; - $params['controller'] = Inflector::camelize($params['controller']."Controller"); + if (empty($params['controller'])) + { + $params['controller'] = "Controller"; + } + else + { + $params['controller'] = Inflector::camelize($params['controller']."Controller"); + } $controller->missingController = $params['controller']; $controller->webroot = $this->webroot; return $this->_invoke($controller, $params );