Skip to content

Commit

Permalink
#2994, unnecessary calls to Model::__isset(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
tharlinsmith committed Mar 10, 2014
1 parent 5b7c3d6 commit 4927cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ public function getColumnType($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);
}

Expand Down

0 comments on commit 4927cf6

Please sign in to comment.