Fixing typo

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-14 16:04:27 -04:30
parent 0228611969
commit dcd8811771

View file

@ -137,9 +137,9 @@ class ClassRegistry {
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';