[HttpKernel] fixed typos

This commit is contained in:
Fabien Potencier 2010-06-26 13:00:25 +02:00
parent bd9f11f8f6
commit aa98c184ac
1 changed files with 3 additions and 3 deletions

View File

@ -209,15 +209,15 @@ class HeaderBag
}
}
if (null !== $this->expires) {
if (null !== $expires) {
$cookie .= '; expires='.substr(\DateTime::createFromFormat('U', $expires, new \DateTimeZone('UTC'))->format('D, d-M-Y H:i:s T'), 0, -5);
}
if ('/' !== $this->path) {
if ('/' !== $path) {
$cookie .= '; path='.$path;
}
if ('' !== $this->domain) {
if ('' !== $domain) {
$cookie .= '; domain='.$domain;
}