diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-16 22:37:32 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-16 22:37:32 +0200 |
commit | 971a3fd124785033e7ed7db1018512b838c5ec58 (patch) | |
tree | 78959038f1c8e2bffc3049740705ebd5a94c6c01 /lib/user.php | |
parent | 49fca86f3c9b135f87b842e95e5f5ad76736e52e (diff) | |
download | nextcloud-server-971a3fd124785033e7ed7db1018512b838c5ec58.tar.gz nextcloud-server-971a3fd124785033e7ed7db1018512b838c5ec58.zip |
Early errors (in base.php) don't have session available
Diffstat (limited to 'lib/user.php')
-rw-r--r-- | lib/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php index 830f13bb8df..d93ab1a5f73 100644 --- a/lib/user.php +++ b/lib/user.php @@ -316,7 +316,7 @@ class OC_User { * @return string uid or false */ public static function getUser() { - $uid = OC::$session->get('user_id'); + $uid = OC::$session ? OC::$session->get('user_id') : null; if (!is_null($uid)) { return $uid; } else { |