Skip to content

Commit a8bcb8e

Browse files
committed
Merge pull request #2 from mhh1422/master
Bug fix
2 parents 3d91b07 + 5b12888 commit a8bcb8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ElasticSessionStore.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public static function putMapping() {
4747
]
4848
]
4949
];
50-
dd(json_encode($mappingParams));
5150
$client->indices()->putMapping($mappingParams);
5251
}
5352

@@ -65,6 +64,9 @@ public function gc($maxLifeTime) {
6564

6665
public function read($sessionId) {
6766
$model = @$this->find($sessionId);
67+
if (!$model) {
68+
return null;
69+
}
6870
$this->_cache[$sessionId] = $model;
6971
return $model->data;
7072
}

0 commit comments

Comments
 (0)