aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-09 12:02:00 +0000
committerMario <mario@mariovavti.com>2022-02-09 12:02:00 +0000
commit76a94495c41c8f82fe99f919fa2b00bf372152f7 (patch)
tree3828d9ca8575a7830ba83b81a0981ac4568ee6b7
parent34ddea87d3875b6817468e13bd0fec7f437548f5 (diff)
parentb6b2299b4e93a9c688c6ec1587808205bf4b4d2f (diff)
downloadvolse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.tar.gz
volse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.tar.bz2
volse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.zip
Merge branch 'dev'
-rw-r--r--Zotlabs/Web/SessionHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php
index 392cab1ae..6beb36795 100644
--- a/Zotlabs/Web/SessionHandler.php
+++ b/Zotlabs/Web/SessionHandler.php
@@ -15,7 +15,7 @@ class SessionHandler implements \SessionHandlerInterface {
// some which call read explicitly and some that do not. So we call it explicitly
// just after sid regeneration to force a record to exist.
- function read ($id) : string|false {
+ function read ($id) : string {
if($id) {
$r = q("SELECT sess_data FROM session WHERE sid= '%s'", dbesc($id));
@@ -86,7 +86,7 @@ class SessionHandler implements \SessionHandlerInterface {
}
- function gc($expire) : int|false {
+ function gc($expire) : int {
q("DELETE FROM session WHERE expire < %d", dbesc(time()));
return true;
}