mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(crashreport) PHP Warning: Invalid argument supplied for foreach() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ConfigdActionsField.php on line 92
This commit is contained in:
parent
9078d7a9e1
commit
09362f174e
@ -80,6 +80,8 @@ class ConfigdActionsField extends BaseField
|
||||
$actions = json_decode($response, true);
|
||||
if (is_array($actions)) {
|
||||
file_put_contents($service_tempfile, $response);
|
||||
} else {
|
||||
$actions = array();
|
||||
}
|
||||
} else {
|
||||
$actions = json_decode(file_get_contents($service_tempfile), true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user