Project

General

Profile

Actions

Bug #4693

closed

php warning when applying changes after change Resolver service|Access List

Added by Alvaro Sedano almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DNS Resolver
Target version:
-
Start date:
05/09/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

php warning when applying changes after change Resolver service|Access List

The php warning is:

"Warning: in_array() expects parameter 2 to be array, null given in /etc/inc/unbound.inc on line 239"

/etc/inc/unbound.inc line 239 shows as

if ($sys_dnsserver && (!in_array($sys_dnsserver, $ns))) {

Solution:

Change this line to

if ($sys_dnsserver && (!in_array($ns, $sys_dnsservers))) {
Actions

Also available in: Atom PDF