FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #11542 from laravel/session · JavaDevl/framework@b3f0217 · GitHub

Commit b3f0217

Browse files
committed
Merge pull request laravel#11542 from laravel/session
[5.1] Backport session bug fix
2 parents 0df8807 + 2a421ce commit b3f0217

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/Illuminate/Session/Store.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ protected function prepareForStorage($data)
283283
protected function addBagDataToSession()
284284
{
285285
foreach (array_merge($this->bags, [$this->metaBag]) as $bag) {
286-
$this->put($bag->getStorageKey(), $this->bagData[$bag->getStorageKey()]);
286+
$key = $bag->getStorageKey();
287+
288+
if (isset($this->bagData[$key])) {
289+
$this->put($key, $this->bagData[$key]);
290+
}
287291
}
288292
}
289293

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL