|
|
@@ -89,7 +89,7 @@ class DatabaseSession implements SessionHandlerInterface
|
|
|
* Method used to read from a database session.
|
|
|
*
|
|
|
* @param int|string $id The key of the value to read
|
|
|
- * @return mixed The value of the key or false if it does not exist
|
|
|
+ * @return string The value of the key or empty if it does not exist
|
|
|
*/
|
|
|
public function read($id)
|
|
|
{
|
|
|
@@ -101,7 +101,7 @@ class DatabaseSession implements SessionHandlerInterface
|
|
|
->first();
|
|
|
|
|
|
if (empty($result)) {
|
|
|
- return false;
|
|
|
+ return '';
|
|
|
}
|
|
|
|
|
|
if (is_string($result['data'])) {
|