File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,12 @@ public function getBlockFirstImagesToSkip($blockIdentifier): int
111
111
public function getBlocksInfo (): array
112
112
{
113
113
if (null === $ this ->blocks ) {
114
+ $ this ->blocks = [];
115
+
114
116
try {
115
117
$ blocks = $ this ->serializer ->unserialize ($ this ->getConfig (self ::XML_PATH_LAZY_BLOCKS ));
116
118
} catch (\InvalidArgumentException $ e ) {
117
- return [] ;
119
+ return $ this -> blocks ;
118
120
}
119
121
120
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 ' ];
126
128
}
127
-
128
- $ this ->blocks = null !== $ this ->blocks ?: [];
129
129
}
130
130
131
131
return $ this ->blocks ;
You can’t perform that action at this time.
0 commit comments