Explorar el Código

[HttpFoundation] Small optimization of Session flash handling

Jordi Boggiano hace 14 años
padre
commit
f400124037
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;