diff --git a/library/Icinga/Web/Form/Element/Number.php b/library/Icinga/Web/Form/Element/Number.php index b8f532c6f..212c0ed1d 100644 --- a/library/Icinga/Web/Form/Element/Number.php +++ b/library/Icinga/Web/Form/Element/Number.php @@ -134,7 +134,7 @@ class Number extends FormElement { $this->setValue($value); $value = $this->getValue(); - if ($value !== '' && ! is_numeric($value)) { + if ($value !== null && $value !== '' && ! is_numeric($value)) { $this->addError(sprintf(t('\'%s\' is not a valid number'), $value)); return false; }