From a0b908e5c6919b958138aec1d085658307cf2062 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 16 Aug 2010 12:48:13 -0400 Subject: [PATCH] existence checking, avoid undefined index errors --- framework/Service_Facebook/lib/Horde/Service/Facebook/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Service_Facebook/lib/Horde/Service/Facebook/Auth.php b/framework/Service_Facebook/lib/Horde/Service/Facebook/Auth.php index b405708be..1905f7975 100644 --- a/framework/Service_Facebook/lib/Horde/Service/Facebook/Auth.php +++ b/framework/Service_Facebook/lib/Horde/Service/Facebook/Auth.php @@ -436,7 +436,7 @@ class Horde_Service_Facebook_Auth public function setUser($user, $sessionKey, $expires = null, $noCookie = false) { $cookies = $this->_request->getCookieVars(); - if (!$noCookie && (!$cookies[$this->_facebook->apiKey . '_user'] || + if (!$noCookie && (empty($cookies[$this->_facebook->apiKey . '_user']) || $cookies[$this->_facebook->apiKey . '_user'] != $user)) { $this->setCookies($user, $sessionKey, $expires); } -- 2.11.0