Browse Source

[HttpFoundation] added a check for array keys existence.

Robert Schönthal 14 years ago
parent
commit
58db452e21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Symfony/Component/HttpFoundation/Session.php

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

@@ -213,7 +213,7 @@ class Session implements \Serializable
 
     public function getFlashes()
     {
-        return $this->attributes['_flash'];
+        return isset($this->attributes['_flash']) ? $this->attributes['_flash'] : array();
     }
 
     public function setFlashes($values)