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