(isset($contain[0]) && $contain[0] === null) always false

This commit is contained in:
euromark 2012-12-18 01:28:05 +01:00
parent 8febb71b67
commit ce93e7c206

View file

@ -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;
}