We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d2ef9 commit 8350abfCopy full SHA for 8350abf
Model/Config.php
@@ -111,10 +111,12 @@ public function getBlockFirstImagesToSkip($blockIdentifier): int
111
public function getBlocksInfo(): array
112
{
113
if (null === $this->blocks) {
114
+ $this->blocks = [];
115
+
116
try {
117
$blocks = $this->serializer->unserialize($this->getConfig(self::XML_PATH_LAZY_BLOCKS));
118
} catch (\InvalidArgumentException $e) {
- return [];
119
+ return $this->blocks;
120
}
121
122
foreach ($blocks as $blockData) {
@@ -124,8 +126,6 @@ public function getBlocksInfo(): array
124
126
125
127
$this->blocks[$blockData['block_identifier']] = $blockData['first_images_to_skip'];
128
-
- $this->blocks = null !== $this->blocks ?: [];
129
130
131
return $this->blocks;
0 commit comments