Skip to content

Commit a3d2ef9

Browse files
authored
fixed issue when config is empty
1 parent 5c85c7f commit a3d2ef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Model/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public function getBlocksInfo(): array
124124

125125
$this->blocks[$blockData['block_identifier']] = $blockData['first_images_to_skip'];
126126
}
127+
128+
$this->blocks = null !== $this->blocks ?: [];
127129
}
128130

129131
return $this->blocks;

0 commit comments

Comments
 (0)