瀏覽代碼

[HttpFoundation] fixed typo

Fabien Potencier 14 年之前
父節點
當前提交
ed33ce4d5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/HttpFoundation/Session.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/Session.php

@@ -151,7 +151,7 @@ class Session implements \Serializable
      */
     public function remove($name)
     {
-        if (array_key_exists($this->attributes, $name)) {
+        if (array_key_exists($name, $this->attributes)) {
             if (false === $this->started) {
                 $this->start();
             }