mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix notice in CakeSession.
This commit is contained in:
parent
4e168ca004
commit
864f5e06f6
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class CakeSession {
|
|||
$config = self::read('Config');
|
||||
$validAgent = (
|
||||
Configure::read('Session.checkAgent') === false ||
|
||||
self::$_userAgent == $config['userAgent']
|
||||
isset($config['userAgent']) && self::$_userAgent === $config['userAgent']
|
||||
);
|
||||
return ($validAgent && self::$time <= $config['time']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue