mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: added not empty validation (#1903)
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user