Fix notice in CakeSession.

This commit is contained in:
euromark 2014-08-04 13:32:20 +02:00
parent 4e168ca004
commit 864f5e06f6

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