mirror of
https://github.com/beestat/app.git
synced 2026-05-13 10:52:29 -04:00
PHP 7.4 and more verbose logging for external authorizations
This commit is contained in:
@@ -232,7 +232,11 @@ final class session {
|
||||
* @return int The current user_id.
|
||||
*/
|
||||
public function get_user_id() {
|
||||
return $this->session['user_id'];
|
||||
if ($this->session !== null) {
|
||||
return $this->session['user_id'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user