mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
(isset($contain[0]) && $contain[0] === null) always false
This commit is contained in:
parent
8febb71b67
commit
ce93e7c206
1 changed files with 1 additions and 3 deletions
|
@ -109,9 +109,7 @@ class ContainableBehavior extends ModelBehavior {
|
|||
}
|
||||
$noContain = $noContain && empty($contain);
|
||||
|
||||
if (
|
||||
$noContain || empty($contain) || (isset($contain[0]) && $contain[0] === null)
|
||||
) {
|
||||
if ($noContain || empty($contain)) {
|
||||
if ($noContain) {
|
||||
$query['recursive'] = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue