mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Fix session::sess_regenerate $delete_old_session always null
Fix bad transtyped bool throw error on login session_regenerate_id(): Passing null to parameter #1 ($delete_old_session) of type bool is deprecated
This commit is contained in:
parent
97d9219484
commit
40cab55a02
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ class CI_Session {
|
||||||
*/
|
*/
|
||||||
public function sess_regenerate($destroy = null)
|
public function sess_regenerate($destroy = null)
|
||||||
{
|
{
|
||||||
$destroy = (bool) $destroy !== null ? $destroy : config_item('sess_regenerate_destroy');
|
$destroy = boolval($destroy !== null ? $destroy : config_item('sess_regenerate_destroy'));
|
||||||
$_SESSION['__ci_last_regenerate'] = time();
|
$_SESSION['__ci_last_regenerate'] = time();
|
||||||
session_regenerate_id($destroy);
|
session_regenerate_id($destroy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue