From f94cf5f869b763ebbc71e5e72f6894aa51975489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 21 Sep 2009 06:33:59 +0000 Subject: Test if dhcpd is enabled not if configs are preset. Reported-by: http://forum.pfsense.org/index.php/topic,19271.0.html --- usr/local/www/interfaces.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 32b5cbe..3b86f2e 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -290,7 +290,7 @@ if ($_POST) { $input_errors[] = "An interface with the specified description already exists."; } /* input validation */ - if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]) && $_POST['type'] != "static") + if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && $_POST['type'] != "static") $input_errors[] = "Dhcpd service is active on this interface and it can be used only with a static ip configuration. Please disable the service first and than change the interface configuration."; if ($_POST['type'] == "static") { -- cgit v1.1