mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 01:12:21 +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
2cce9a8bba
commit
8e415fcf10
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ class CI_Session {
|
|||
*/
|
||||
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_regenerate_id($destroy);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue