Merge pull request #207 from sparksp/fix/session-flush
Fix: Session flush now correctly prepares empty data.
This commit is contained in:
commit
791dbdebe7
|
@ -3,6 +3,7 @@ # Laravel Change Log
|
||||||
## Version 2.0.5
|
## Version 2.0.5
|
||||||
|
|
||||||
- Fix: Remove orderings before running pagination queries.
|
- Fix: Remove orderings before running pagination queries.
|
||||||
|
- Fix: Session flush now correctly prepares empty data.
|
||||||
|
|
||||||
### Upgrading from 2.0.4
|
### Upgrading from 2.0.4
|
||||||
|
|
||||||
|
@ -138,4 +139,4 @@ ### Upgrading From 1.5.1
|
||||||
|
|
||||||
- Replace the **system** directory.
|
- Replace the **system** directory.
|
||||||
- Replace the **application/config/aliases.php** file.
|
- Replace the **application/config/aliases.php** file.
|
||||||
- Take note of encryption class changes.
|
- Take note of encryption class changes.
|
||||||
|
|
|
@ -229,7 +229,10 @@ public function forget($key)
|
||||||
*/
|
*/
|
||||||
public function flush()
|
public function flush()
|
||||||
{
|
{
|
||||||
$this->session['data'] = array();
|
$this->session['data'] = array(
|
||||||
|
':new:' => array(),
|
||||||
|
':old:' => array(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue