Commit 5ae5207b authored by Nigel McNie's avatar Nigel McNie
Browse files

[PIEFORMS] Better check for integers that doesn't fail on 32bit systems.

Now at least "integer" means "the largest integer a float can handle",
which is a much higher limit.
Signed-off-by: default avatarNigel McNie <>
parent 11465b38
......@@ -34,7 +34,7 @@
* the address.
function pieform_rule_integer(Pieform $form, $value, $element) {/*{{{*/
if (!is_numeric($value) || $value != (int)$value) {
if (!is_numeric($value) || floor($value) != $value) {
return $form->i18n('rule', 'integer', 'integer', $element);
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