diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index fc22e791b..b89fd2608 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -811,7 +811,7 @@ class Controller extends Object { list($plugin, $className) = pluginSplit($model); $this->request->params['models'][$model] = compact('plugin', 'className'); } - } if ($this->uses === false || $this->uses === array()) { + } if (!empty($this->modelClass) && ($this->uses === false || $this->uses === array())) { $this->request->params['models'][$this->modelClass] = array('plugin' => $this->plugin, 'className' => $this->modelClass); }