mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 20:46:24 +00:00
Applying patch from 'halogenandtoast' Fixes issues with deleting cookie values before read() is used. Closes #5563
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7725 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
67abae6307
commit
aa217716b9
1 changed files with 1 additions and 1 deletions
|
@ -279,8 +279,8 @@ class CookieComponent extends Object {
|
||||||
if (count($name) > 1) {
|
if (count($name) > 1) {
|
||||||
if (isset($this->__values[$name[0]])) {
|
if (isset($this->__values[$name[0]])) {
|
||||||
unset($this->__values[$name[0]][$name[1]]);
|
unset($this->__values[$name[0]][$name[1]]);
|
||||||
$this->__delete("[".$name[0]."][".$name[1]."]");
|
|
||||||
}
|
}
|
||||||
|
$this->__delete("[".$name[0]."][".$name[1]."]");
|
||||||
} else {
|
} else {
|
||||||
if (isset($this->__values[$name[0]])) {
|
if (isset($this->__values[$name[0]])) {
|
||||||
if (is_array($this->__values[$name[0]])) {
|
if (is_array($this->__values[$name[0]])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue