Fix bug in session flashing.

This commit is contained in:
Taylor Otwell 2011-11-01 08:33:36 -05:00
parent 06bf0a40a6
commit cf6514fbb9
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ protected function age()
// 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
// 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']));
}