change visibility parameter in content and folder loops
This commit is contained in:
@@ -151,7 +151,8 @@ class Content extends BaseI18nLoop
|
||||
|
||||
$visible = $this->getVisible();
|
||||
|
||||
if ($visible != BooleanOrBothType::ANY) $search->filterByVisible($visible);
|
||||
if ($visible !== BooleanOrBothType::ANY) $search->filterByVisible($visible ? 1 : 0);
|
||||
|
||||
|
||||
$orders = $this->getOrder();
|
||||
|
||||
|
||||
@@ -121,7 +121,8 @@ class Folder extends BaseI18nLoop
|
||||
|
||||
$visible = $this->getVisible();
|
||||
|
||||
if ($visible != BooleanOrBothType::ANY) $search->filterByVisible($visible ? 1 : 0);
|
||||
if ($visible !== BooleanOrBothType::ANY) $search->filterByVisible($visible ? 1 : 0);
|
||||
|
||||
|
||||
$orders = $this->getOrder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user