mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing typo
This commit is contained in:
parent
0228611969
commit
dcd8811771
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue