From c25e42c8e970593ecbd5ef0b2a81379de66113d7 Mon Sep 17 00:00:00 2001 From: Mark Furneaux Date: Sun, 21 Feb 2016 00:08:22 -0500 Subject: [PATCH] Fix regression on general setup page preventing save with blank DNS servers Introduced in f700dc9 --- src/usr/local/www/system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 8c00c11132..a3ad0a5d86 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.'); }