Permalink
Browse files

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

  • Loading branch information...
1 parent 5b7c3d6 commit 4927cf690177c6e9099319fb9eb79134254a6a54 @tharlinsmith tharlinsmith committed Mar 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
View
@@ -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);
}

0 comments on commit 4927cf6

Please sign in to comment.