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];