Skip to content

Commit

Permalink
Fix 41270: Add missing type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalseeland committed Apr 26, 2024
1 parent 492f784 commit 0d434ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/Authentication/classes/class.ilSessionControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ private static function kickOneMinIdleSession(array $a_types): void
$ilSetting = $DIC['ilSetting'];

$ts = time();
$min_idle = (int) $ilSetting->get('session_min_idle', self::DEFAULT_MIN_IDLE) * 60;
$max_idle = (int) $ilSetting->get('session_max_idle', self::DEFAULT_MAX_IDLE) * 60;
$min_idle = (int) $ilSetting->get('session_min_idle', (string) self::DEFAULT_MIN_IDLE) * 60;
$max_idle = (int) $ilSetting->get('session_max_idle', (string) self::DEFAULT_MAX_IDLE) * 60;

$query = "SELECT session_id,expires FROM usr_session WHERE expires >= %s " .
"AND (expires - %s) < (%s - %s) " .
Expand Down

0 comments on commit 0d434ad

Please sign in to comment.