summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-21 06:33:59 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-21 06:33:59 +0000
commitf94cf5f869b763ebbc71e5e72f6894aa51975489 (patch)
treee64c5d2ddbe9eda4c51a9181085ded981c6b3247 /usr/local/www
parent1f30242407ac54d5ad48fb08cbece5758c932612 (diff)
downloadpfsense-f94cf5f869b763ebbc71e5e72f6894aa51975489.zip
pfsense-f94cf5f869b763ebbc71e5e72f6894aa51975489.tar.gz
Test if dhcpd is enabled not if configs are preset. Reported-by: http://forum.pfsense.org/index.php/topic,19271.0.html
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/interfaces.php2
1 files changed, 1 insertions, 1 deletions
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") {
OpenPOWER on IntegriCloud