Skip to content

Commit

Permalink
Registration: Valid Until Should be INT (ILIAS-eLearning#6370)
Browse files Browse the repository at this point in the history
* Registration: Valid Until Should be INT

See: https://mantis.ilias.de/view.php?id=38057
  • Loading branch information
kergomard authored Oct 31, 2023
1 parent 33e78a3 commit 56b3ec3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -18,6 +16,8 @@
*
*********************************************************************/

declare(strict_types=1);

/**
* Class ilAccountRegistrationGUI
* @author Stefan Meyer <[email protected]>
Expand Down Expand Up @@ -481,7 +481,7 @@ protected function createUser(int $a_role): string

case "relative":
$rel = unserialize($code_data["alimitdt"], ['allowed_classes' => false]);
$access_limit = $rel["d"] * 86400 + $rel["m"] * 2592000 + $rel["y"] * 31536000 + time();
$access_limit = (int) ($rel["d"] * 86400 + $rel["m"] * 2592000 + $rel["y"] * 31536000 + time());
break;
}
}
Expand Down

0 comments on commit 56b3ec3

Please sign in to comment.