Skip to content

Commit

Permalink
Remove unneeded test inside conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
bar committed Nov 12, 2013
1 parent f16695d commit 5da05d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -1112,7 +1112,7 @@ public function read(Model $model, $queryData = array(), $recursive = null) {
} else {
$db = ConnectionManager::getDataSource($linkModel->useDbConfig);
}
} elseif ($model->recursive > 1 && ($type === 'belongsTo' || $type === 'hasOne')) {
} elseif ($model->recursive > 1) {
$db = $this;
}

Expand Down

0 comments on commit 5da05d9

Please sign in to comment.