summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
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