| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -283,7 +283,11 @@ protected function prepareForStorage($data) | |||
| 283 | 283 | protected function addBagDataToSession() | |
| 284 | 284 | { | |
| 285 | 285 | 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 | + } | ||
| 287 | 291 | } | |
| 288 | 292 | } | |
| 289 | 293 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments