mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
#2994, unnecessary calls to Model::__isset(null)
This commit is contained in:
parent
5b7c3d68f0
commit
4927cf6901
1 changed files with 1 additions and 1 deletions
|
@ -1408,7 +1408,7 @@ class Model extends Object implements CakeEventListener {
|
||||||
list($model, $column) = explode('.', $column);
|
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);
|
return $this->{$model}->getColumnType($column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue