Permalink
Browse files

Fixing typo

  • Loading branch information...
1 parent 0228611 commit dcd8811771e1175430d27403e786a9f1a02e732f @lorenzo lorenzo committed Jul 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Utility/ClassRegistry.php
@@ -137,9 +137,9 @@ public static function init($class, $strict = false) {
if (class_exists($class)) {
${$class} = new $class($settings);
- $$class = ($$class instanceof Mdoel) ? $$class : null;
+ ${$class} = (${$class} instanceof Model) ? ${$class} : null;
}
- if (!isset($$class) && $strict) {
+ if (!isset(${$class}) && $strict) {
return false;
} elseif ($plugin && class_exists($plugin . 'AppModel')) {
$appModel = $plugin . 'AppModel';

0 comments on commit dcd8811

Please sign in to comment.