mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Remove unneeded test inside conditional.
This commit is contained in:
parent
f16695db5f
commit
5da05d9216
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ class DboSource extends DataSource {
|
|||
} else {
|
||||
$db = ConnectionManager::getDataSource($linkModel->useDbConfig);
|
||||
}
|
||||
} elseif ($model->recursive > 1 && ($type === 'belongsTo' || $type === 'hasOne')) {
|
||||
} elseif ($model->recursive > 1) {
|
||||
$db = $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue