Skip to content
Permalink
Browse files

Fix cookie reading.

  • Loading branch information...
dereuromark committed Aug 6, 2014
1 parent dda4933 commit 5f5218f3b20cdb43a0680825ffc760e2965b4854
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/CookieComponent.php
@@ -284,7 +284,7 @@ public function read($key = null) {
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];

0 comments on commit 5f5218f

Please sign in to comment.
You can’t perform that action at this time.