Commit 2d42d843 authored by Franco Fichtner's avatar Franco Fichtner

system: value is ptional so only validate if there #1581

parent f399f3fa
......@@ -332,8 +332,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
if (isset($pconfig['serial']) && ((string)((int)$pconfig['serial']) != $pconfig['serial'] || $pconfig['serial'] < 1)) {
$input_errors[] = gettext('The serial number must be a number greater than zero.');
if (isset($pconfig['serial']) && $pconfig['serial'] !== '' &&
((string)((int)$pconfig['serial']) != $pconfig['serial'] || $pconfig['serial'] < 1)) {
$input_errors[] = gettext('The serial number must be a number greater than zero or left blank.');
}
/* save modifications */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment