From 5f5218f3b20cdb43a0680825ffc760e2965b4854 Mon Sep 17 00:00:00 2001 From: euromark Date: Wed, 6 Aug 2014 22:53:54 +0200 Subject: [PATCH] Fix cookie reading. --- lib/Cake/Controller/Component/CookieComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Component/CookieComponent.php b/lib/Cake/Controller/Component/CookieComponent.php index 2a65b7394..55a031523 100644 --- a/lib/Cake/Controller/Component/CookieComponent.php +++ b/lib/Cake/Controller/Component/CookieComponent.php @@ -284,7 +284,7 @@ class CookieComponent extends Component { return null; } - if (!empty($names[1])) { + if (!empty($names[1]) && is_array($this->_values[$this->name][$key])) { return Hash::get($this->_values[$this->name][$key], $names[1]); } return $this->_values[$this->name][$key];