File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Developer/Model/Config/Backend Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,21 +57,22 @@ public function beforeSave()
57
57
}
58
58
59
59
$ dataArray = explode (', ' , $ allowedIpsRaw );
60
- foreach ($ dataArray as $ k => $ data ) {
60
+ foreach ($ dataArray as $ data ) {
61
61
if ( filter_var (trim ($ data ), FILTER_VALIDATE_IP ) ) {
62
62
$ allowedIpsArray [] = $ data ;
63
63
} else {
64
64
$ noticeMsgArray [] = $ data ;
65
- }
65
+ }
66
66
}
67
67
68
68
$ noticeMsg = implode (', ' , $ noticeMsgArray );
69
- if (!empty ($ noticeMsgArray ))
69
+ if (!empty ($ noticeMsgArray )) {
70
70
$ this ->messageManager ->addNotice (
71
71
__ (
72
72
__ ('The following invalid values cannot be saved: %values ' , ['values ' => $ noticeMsg ])
73
73
)
74
74
);
75
+ }
75
76
76
77
$ this ->setValue (implode (', ' , $ allowedIpsArray ));
77
78
return parent ::beforeSave ();
You can’t perform that action at this time.
0 commit comments