mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
More robust way to check number step [#3433]
This commit is contained in:
parent
907e46631c
commit
61adb1e6cf
|
|
@ -541,7 +541,7 @@ class Validation
|
|||
// Count of how many steps we are above/below the minimum value.
|
||||
$pos = ($value - $min) / $step;
|
||||
|
||||
return fmod($pos, 1) === 0.0;
|
||||
return is_int(static::filterNumber($pos, $params, $field));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user