diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-03 14:05:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-06-14 11:34:41 +0200 |
commit | 28d070730d9de5aec690f152a95dbf1da123d2ee (patch) | |
tree | c8ae03e57a90f2f0f2ddae7b6d872a4ea98e53ac /lib/private/Share20 | |
parent | ae3d0d96fe7e273f6dfae3a5ca4754b5da4353cc (diff) | |
download | nextcloud-server-28d070730d9de5aec690f152a95dbf1da123d2ee.tar.gz nextcloud-server-28d070730d9de5aec690f152a95dbf1da123d2ee.zip |
Fix case with no user
Diffstat (limited to 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 2b1c7d828f1..e2730f4d5fb 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1212,6 +1212,10 @@ class Manager implements IManager { * @return bool */ public function sharingDisabledForUser($userId) { + if ($userId === null) { + return false; + } + if (isset($this->sharingDisabledForUsersCache[$userId])) { return $this->sharingDisabledForUsersCache[$userId]; } |