We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f79e186 + 2a61904 commit 21bd63cCopy full SHA for 21bd63c
Model/Config/Backend/Serialized/MiscScriptArraySerialized.php
@@ -18,9 +18,11 @@ public function afterLoad()
18
{
19
parent::afterLoad();
20
$values = $this->getValue();
21
- foreach ($values as &$value) {
22
- if (!array_key_exists('is_enabled', $value)) {
23
- $value['is_enabled'] = '';
+ if (is_array($values)) {
+ foreach ($values as &$value) {
+ if (!array_key_exists('is_enabled', $value)) {
24
+ $value['is_enabled'] = '';
25
+ }
26
}
27
28
0 commit comments