Skip to content

Commit

Permalink
Fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 14, 2011
1 parent 0228611 commit dcd8811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Utility/ClassRegistry.php
Expand Up @@ -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';
Expand Down

0 comments on commit dcd8811

Please sign in to comment.