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:
mark_story 2008-10-10 01:16:04 +00:00
parent 67abae6307
commit aa217716b9

View file

@ -279,8 +279,8 @@ class CookieComponent extends Object {
if (count($name) > 1) {
if (isset($this->__values[$name[0]])) {
unset($this->__values[$name[0]][$name[1]]);
$this->__delete("[".$name[0]."][".$name[1]."]");
}
$this->__delete("[".$name[0]."][".$name[1]."]");
} else {
if (isset($this->__values[$name[0]])) {
if (is_array($this->__values[$name[0]])) {