Browse Source

Fix bug in session flashing.

Taylor Otwell 13 years ago
parent
commit
cf6514fbb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/session/payload.php

+ 1 - 1
laravel/session/payload.php

@@ -240,7 +240,7 @@ class Payload {
 		// 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']));
 	}