mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
parent
f80baf03d4
commit
4865c52aa6
2 changed files with 2 additions and 2 deletions
|
|
@ -337,7 +337,7 @@ class OC_User {
|
|||
* Checks if the user is logged in
|
||||
*/
|
||||
public static function isLoggedIn() {
|
||||
if (\OC::$session->get('user_id') && self::$incognitoMode === false) {
|
||||
if (\OC::$session->get('user_id') !== null && self::$incognitoMode === false) {
|
||||
return self::userExists(\OC::$session->get('user_id'));
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class Session implements Emitter, \OCP\IUserSession {
|
|||
return $this->activeUser;
|
||||
} else {
|
||||
$uid = $this->session->get('user_id');
|
||||
if ($uid) {
|
||||
if ($uid !== null) {
|
||||
$this->activeUser = $this->manager->get($uid);
|
||||
return $this->activeUser;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue