Skip to content

Commit 087aadd

Browse files
[FIX] Auth: Ensure integer lead time values for session reminder
(cherry picked from commit 7cd21df)
1 parent ccb212f commit 087aadd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ILIAS/Authentication/classes/class.ilSessionReminder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getMaxPossibleLeadTime(): int
101101
{
102102
$expires = ilSession::getSessionExpireValue();
103103

104-
return max(self::MIN_LEAD_TIME, ($expires / 60) - 1);
104+
return max(self::MIN_LEAD_TIME, (int) (floor($expires / 60) - 1));
105105
}
106106

107107
private function init(): void

0 commit comments

Comments
 (0)