Merge pull request #207 from sparksp/fix/session-flush

Fix: Session flush now correctly prepares empty data.
This commit is contained in:
Taylor Otwell 2011-12-09 11:06:09 -08:00
commit 791dbdebe7
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ # Laravel Change Log
## Version 2.0.5
- Fix: Remove orderings before running pagination queries.
- Fix: Session flush now correctly prepares empty data.
### Upgrading from 2.0.4
@ -138,4 +139,4 @@ ### Upgrading From 1.5.1
- Replace the **system** directory.
- Replace the **application/config/aliases.php** file.
- Take note of encryption class changes.
- Take note of encryption class changes.

View File

@ -229,7 +229,10 @@ public function forget($key)
*/
public function flush()
{
$this->session['data'] = array();
$this->session['data'] = array(
':new:' => array(),
':old:' => array(),
);
}
/**