Commit a98c3fd0 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) crashreport PHP Warning: in_array() expects parameter 2 to be array,...

(legacy) crashreport PHP Warning:  in_array() expects parameter 2 to be array, null given in /usr/local/www/services_dhcpv6_relay.php on line 162
parent b8654e7b
......@@ -159,7 +159,7 @@ function enable_change(enable_over) {
if (!is_ipaddrv6(get_interface_ipv6($ifent)))
continue;
echo "<option value=\"{$ifent}\"";
if (in_array($ifent, $pconfig['interface']))
if (!empty($pconfig['interface']) && in_array($ifent, $pconfig['interface']))
echo " selected=\"selected\"";
echo ">{$ifdesc}</option>\n";
}
......
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