diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index 13d36328c..eb54a385a 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -940,7 +940,7 @@ class Controller extends Object implements CakeEventListener { $models = ClassRegistry::keys(); foreach ($models as $currentModel) { $currentObject = ClassRegistry::getObject($currentModel); - if (is_a($currentObject, 'Model')) { + if ($currentObject instanceof Model) { $className = get_class($currentObject); list($plugin) = pluginSplit(App::location($className)); $this->request->params['models'][$currentObject->alias] = compact('plugin', 'className');