diff --git a/src/QUI/Bricks/Manager.php b/src/QUI/Bricks/Manager.php index d56e508a30f974cdf494ace5bd30fe8f16f972b1..1a4ea2931df9b90333fd709e1b02703a11e044d4 100644 --- a/src/QUI/Bricks/Manager.php +++ b/src/QUI/Bricks/Manager.php @@ -739,12 +739,16 @@ public function getBricksByArea($brickArea, QUI\Interfaces\Projects\Site $Site) $brickId = (int)$brickData['brickId']; try { - if (isset($brickData['uid'])) { + if (!empty($brickData['uid'])) { $Brick = $this->getBrickByUID($brickData['uid']); $result[] = $Brick->check(); continue; } + if (!$brickId) { + continue; + } + // fallback $Brick = $this->getBrickById($brickId); $Clone = clone $Brick;