Commit 813e08d5 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(crashreport) PHP Warning: Invalid argument supplied for foreach() in...

(crashreport) PHP Warning:  Invalid argument supplied for foreach() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ConfigdActionsField.php on line 92

(cherry picked from commit 09362f17)
parent df175817
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment