Commit 885aae0f authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix crashreport PHP Warning: Illegal string offset 'wan' in...

(legacy) fix crashreport PHP Warning:  Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 57

(cherry picked from commit 4f0a083e)
parent 155b6019
...@@ -54,8 +54,8 @@ $iflist = array_merge($iflist, get_configured_pppoe_server_interfaces()); ...@@ -54,8 +54,8 @@ $iflist = array_merge($iflist, get_configured_pppoe_server_interfaces());
if (!$if || !isset($iflist[$if])) { if (!$if || !isset($iflist[$if])) {
foreach ($iflist as $ifent => $ifname) { foreach ($iflist as $ifent => $ifname) {
$oc = $config['interfaces'][$ifent]; $oc = $config['interfaces'][$ifent];
if ((is_array($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))) || if ((!empty($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))) ||
(!is_array($config['dhcpdv6'][$ifent]) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6']))))) (empty($config['dhcpdv6'][$ifent]) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))))
continue; continue;
$if = $ifent; $if = $ifent;
break; break;
......
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