#2994, unnecessary calls to Model::__isset(null)

This commit is contained in:
Thomas Smith 2014-03-10 10:16:32 -07:00
parent 5b7c3d68f0
commit 4927cf6901

View file

@ -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);
} }