Commit 9dd793d6 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(crashreport) PHP Warning:  in_array() expects parameter 2 to be array, null given in /usr/local/www/services_unbound.php on line 176

(cherry picked from commit 801d7ca0)
parent dfcdbd61
...@@ -173,7 +173,7 @@ include_once("head.inc"); ...@@ -173,7 +173,7 @@ include_once("head.inc");
<option value="" <?=empty($pconfig['active_interface'][0]) ? 'selected="selected"' : ""; ?>><?=gettext("All");?></option> <option value="" <?=empty($pconfig['active_interface'][0]) ? 'selected="selected"' : ""; ?>><?=gettext("All");?></option>
<?php <?php
foreach (get_possible_listen_ips(false, false) as $laddr):?> foreach (get_possible_listen_ips(false, false) as $laddr):?>
<option value="<?=$laddr['value'];?>" <?=in_array($laddr['value'], $pconfig['active_interface']) ? 'selected="selected"' : "";?>><?=htmlspecialchars($laddr['name']);?></option> <option value="<?=$laddr['value'];?>" <?=!empty($pconfig['active_interface'][0]) && in_array($laddr['value'], $pconfig['active_interface']) ? 'selected="selected"' : "";?>><?=htmlspecialchars($laddr['name']);?></option>
<?php <?php
endforeach; ?> endforeach; ?>
</select> </select>
...@@ -257,7 +257,7 @@ include_once("head.inc"); ...@@ -257,7 +257,7 @@ include_once("head.inc");
<option value="" <?=empty($pconfig['outgoing_interface'][0]) ? 'selected="selected"' : ""; ?>><?=gettext("All");?></option> <option value="" <?=empty($pconfig['outgoing_interface'][0]) ? 'selected="selected"' : ""; ?>><?=gettext("All");?></option>
<?php <?php
foreach (get_possible_listen_ips(true) as $laddr):?> foreach (get_possible_listen_ips(true) as $laddr):?>
<option value="<?=$laddr['value'];?>" <?=in_array($laddr['value'], $pconfig['outgoing_interface']) ? 'selected="selected"' : "";?>> <option value="<?=$laddr['value'];?>" <?=!empty($pconfig['outgoing_interface'][0]) && in_array($laddr['value'], $pconfig['outgoing_interface']) ? 'selected="selected"' : "";?>>
<?=htmlspecialchars($laddr['name']);?> <?=htmlspecialchars($laddr['name']);?>
</option> </option>
<?php <?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