From 864f5e06f69afe93918ba8d0fe3403a8fc11f549 Mon Sep 17 00:00:00 2001 From: euromark Date: Mon, 4 Aug 2014 13:32:20 +0200 Subject: [PATCH] Fix notice in CakeSession. --- lib/Cake/Model/Datasource/CakeSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Datasource/CakeSession.php b/lib/Cake/Model/Datasource/CakeSession.php index 695bd2ef6..96a66d899 100644 --- a/lib/Cake/Model/Datasource/CakeSession.php +++ b/lib/Cake/Model/Datasource/CakeSession.php @@ -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']); }