Skip to content

Commit

Permalink
Faster fix for Issue antonioribeiro#325 on original source.
Browse files Browse the repository at this point in the history
  • Loading branch information
doncadavona committed Jun 24, 2019
1 parent 5bcd748 commit 93510f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Data/Repositories/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ private function ensureSessionDataIsComplete()

$wasComplete = true;

foreach (collect($this->sessionInfo)->except('user_agent')->toArray() as $key => $value) {
foreach ($this->sessionInfo as $key => $value) {

if ($key === 'user_agent')
continue;

if ($sessionData[$key] !== $value) {
if (!isset($model)) {
$model = $this->find($this->sessionInfo['id']);
Expand Down

0 comments on commit 93510f6

Please sign in to comment.