mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #2995 from tharlinsmith/ticket-2994
#2994, unnecessary calls to Model::__isset(null)
This commit is contained in:
commit
47900c10ca
1 changed files with 1 additions and 1 deletions
|
@ -1408,7 +1408,7 @@ class Model extends Object implements CakeEventListener {
|
|||
list($model, $column) = explode('.', $column);
|
||||
}
|
||||
|
||||
if ($model != $this->alias && isset($this->{$model})) {
|
||||
if (isset($model) && $model != $this->alias && isset($this->{$model})) {
|
||||
return $this->{$model}->getColumnType($column);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue