mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #4182 from dereuromark/master-cookie
Fix cookie reading.
This commit is contained in:
commit
53447fe2fb
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ class CookieComponent extends Component {
|
||||||
return 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 Hash::get($this->_values[$this->name][$key], $names[1]);
|
||||||
}
|
}
|
||||||
return $this->_values[$this->name][$key];
|
return $this->_values[$this->name][$key];
|
||||||
|
|
Loading…
Reference in a new issue