dns/dyndns: added not empty validation (#1903)

This commit is contained in:
Andreas Rupper
2020-07-02 06:53:36 +02:00
committed by GitHub
parent 7f7791edca
commit 2f4514a3b2
+1 -1
View File
@@ -139,7 +139,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors[] = gettext("The username contains invalid characters.");
}
if ((string)((int)$pconfig['ttl']) != $pconfig['ttl']) {
if (!empty($pconfig['ttl']) && (string)((int)$pconfig['ttl']) != $pconfig['ttl']) {
$input_errors[] = gettext("The TTL value needs to be a valid integer number.");
}