Fix bug in session flashing.
This commit is contained in:
parent
06bf0a40a6
commit
cf6514fbb9
|
@ -240,7 +240,7 @@ protected function age()
|
||||||
// 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']));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue