Commit 139c0015 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) crashreport strpos() expects parameter 1 to be string, array given in...

(legacy) crashreport strpos() expects parameter 1 to be string, array given in /usr/local/www/firewall_rules_edit.php on line 747

(cherry picked from commit 84ba6a49)
parent 0744812f
......@@ -744,7 +744,7 @@ include("head.inc");
<?php
endif;
foreach (formInterfaces() as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?= !empty($pconfig['interface']) && ($iface == $pconfig['interface'] || (strpos($pconfig['interface'], ',') !== false && in_array($iface, explode(',', $pconfig['interface'])))) ? 'selected="selected"' : ''; ?>>
<option value="<?=$iface;?>" <?= !empty($pconfig['interface']) && ($iface == $pconfig['interface'] || (!is_array($pconfig['interface']) && strpos($pconfig['interface'], ',') !== false && in_array($iface, explode(',', $pconfig['interface'])))) ? 'selected="selected"' : ''; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
<?php
......
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