mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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);
|
$noContain = $noContain && empty($contain);
|
||||||
|
|
||||||
if (
|
if ($noContain || empty($contain)) {
|
||||||
$noContain || empty($contain) || (isset($contain[0]) && $contain[0] === null)
|
|
||||||
) {
|
|
||||||
if ($noContain) {
|
if ($noContain) {
|
||||||
$query['recursive'] = -1;
|
$query['recursive'] = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue