Commit 0af55508 authored by Franco Fichtner's avatar Franco Fichtner

plugins: new code, old problem: foreach target must be set

(cherry picked from commit 6ddffae2)
parent 21f651c6
......@@ -135,10 +135,12 @@ function plugins_interfaces()
}
// cleanup registrations
foreach ($config['interfaces'] as $intf => $intf_data) {
if (!empty($intf_data['internal_dynamic']) && !in_array($intf, $registered_interfaces)) {
$changed_interfaces[] = $intf;
unset($config['interfaces'][$intf]);
if (isset($config['interfaces'])) {
foreach ($config['interfaces'] as $intf => $intf_data) {
if (!empty($intf_data['internal_dynamic']) && !in_array($intf, $registered_interfaces)) {
$changed_interfaces[] = $intf;
unset($config['interfaces'][$intf]);
}
}
}
......
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