diff options
author | Mark Furneaux <mark@furneaux.ca> | 2016-02-21 00:08:22 -0500 |
---|---|---|
committer | Mark Furneaux <mark@furneaux.ca> | 2016-02-21 00:08:22 -0500 |
commit | c25e42c8e970593ecbd5ef0b2a81379de66113d7 (patch) | |
tree | 5d5df45efaeb673c78981839f00cbe785834b5cc /src/usr/local/www/system.php | |
parent | 656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a (diff) | |
download | pfsense-c25e42c8e970593ecbd5ef0b2a81379de66113d7.zip pfsense-c25e42c8e970593ecbd5ef0b2a81379de66113d7.tar.gz |
Fix regression on general setup page preventing save with blank DNS servers
Introduced in f700dc9
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r-- | src/usr/local/www/system.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 8c00c11..a3ad0a5 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -201,7 +201,7 @@ if ($_POST) { } } - if (count($dnslist) != count(array_unique($dnslist))) { + if (count(array_filter($dnslist)) != count(array_unique(array_filter($dnslist)))) { $input_errors[] = gettext('Each configured DNS server must have a unique IP address. Remove the duplicated IP.'); } |