pull/86/merge
Oliver Tacke 2021-12-22 00:58:11 +01:00 committed by GitHub
commit 1ad9a8178a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4354,7 +4354,7 @@ class H5PContentValidator {
// Check if number is within allowed bounds even if step value is set.
if (isset($semantics->step)) {
$testNumber = $number - (isset($semantics->min) ? $semantics->min : 0);
$rest = $testNumber % $semantics->step;
$rest = fmod($testNumber, $semantics->step);
if ($rest !== 0) {
$number -= $rest;
}