瀏覽代碼

[HttpFoundation] Small optimization of Session flash handling

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

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

@@ -66,7 +66,7 @@ class Session implements \Serializable
             $this->setPhpDefaultLocale($this->locale);
 
             // flag current flash messages to be removed at shutdown
-            $this->oldFlashes = array_flip(array_keys($this->flashes));
+            $this->oldFlashes = $this->flashes;
         }
 
         $this->started = true;