if DHCP main settings, check if entry is valid

This commit is contained in:
Roland Gruber 2009-01-18 18:57:14 +00:00
parent 95aa975230
commit a8a597258a
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ class ddns extends baseModule {
} }
} }
else { else {
if (!$this->check_if_ddns_is_enable()) {
return true;
}
// Account settings // Account settings
$ip = $this->getDNSServer(); $ip = $this->getDNSServer();
if (!empty($ip) && !check_ip($ip)) return false; if (!empty($ip) && !check_ip($ip)) return false;