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:
This commit is contained in:
commit
b042366353
@ -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)
|
||||
|
Reference in New Issue
Block a user