|
|
@@ -419,17 +419,19 @@ class BxBasePage extends BxDolPage
|
|
|
$aCells = $this->_oQuery->getPageBlocks();
|
|
|
foreach ($aCells as $sKey => $aCell) {
|
|
|
foreach ($aCell as $i => $aBlock) {
|
|
|
- if (!$this->_isVisibleBlock($aBlock))
|
|
|
+ if (!$this->_isVisibleBlock($aBlock)){
|
|
|
unset($aCells[$sKey][$i]);
|
|
|
-
|
|
|
- $this->processPageBlock($aCells[$sKey][$i], true);
|
|
|
- $aBlock = $aCells[$sKey][$i];
|
|
|
-
|
|
|
- $sFunc = '_getBlock' . ucfirst($aBlock['type']);
|
|
|
- $aCells[$sKey][$i]['content'] = method_exists($this, $sFunc) ? $this->$sFunc($aBlock) : $aBlock['content'];
|
|
|
- $aCells[$sKey][$i]['title'] = $this->getBlockTitle($aBlock);
|
|
|
- foreach ($aFieldsUnset as $s)
|
|
|
- unset($aCells[$sKey][$i][$s]);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $this->processPageBlock($aCells[$sKey][$i], true);
|
|
|
+ $aBlock = $aCells[$sKey][$i];
|
|
|
+
|
|
|
+ $sFunc = '_getBlock' . ucfirst($aBlock['type']);
|
|
|
+ $aCells[$sKey][$i]['content'] = method_exists($this, $sFunc) ? $this->$sFunc($aBlock) : $aBlock['content'];
|
|
|
+ $aCells[$sKey][$i]['title'] = $this->getBlockTitle($aBlock);
|
|
|
+ foreach ($aFieldsUnset as $s)
|
|
|
+ unset($aCells[$sKey][$i][$s]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return $aCells;
|