Commit cf6514fb authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in session flashing.

parent 06bf0a40
...@@ -240,7 +240,7 @@ class Payload { ...@@ -240,7 +240,7 @@ class Payload {
// we can re-address all of the newly flashed keys to have old addresses. // we can re-address all of the newly flashed keys to have old addresses.
// The array_combine method uses the first array for keys, and the second // The array_combine method uses the first array for keys, and the second
// array for values to construct a single array from both. // array for values to construct a single array from both.
$keys = str_replace(':new', ':old:', array_keys($this->session['data'])); $keys = str_replace(':new:', ':old:', array_keys($this->session['data']));
$this->session['data'] = array_combine($keys, array_values($this->session['data'])); $this->session['data'] = array_combine($keys, array_values($this->session['data']));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment