change visibility parameter in content and folder loops

This commit is contained in:
Manuel Raynaud
2013-10-25 12:24:47 +02:00
parent 8196349ceb
commit de147b7b0c
2 changed files with 4 additions and 2 deletions

View File

@@ -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();

View File

@@ -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();