Преглед изворни кода

Merge remote branch 'stfalcon/patch-2'

* stfalcon/patch-2:
  Small refact. Without this I get a php Notice and Warnig if try getFlash() after clearing the session:
Fabien Potencier пре 14 година
родитељ
комит
b042366353
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Symfony/Component/HttpFoundation/Session.php

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

@@ -232,7 +232,7 @@ class Session implements \Serializable
 
     public function getFlash($name, $default = null)
     {
-        return array_key_exists($name, $this->attributes['_flash']) ? $this->attributes['_flash'][$name] : $default;
+        return array_key_exists($name, $this->getFlashes()) ? $this->attributes['_flash'][$name] : $default;
     }
 
     public function setFlash($name, $value)