Merge pull request #4158 from dereuromark/master-cakesession-hotfix

Fix notice in CakeSession.
This commit is contained in:
Mark S. 2014-08-06 18:25:55 +02:00
commit 2471c64aae

View file

@ -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']);
}