summaryrefslogtreecommitdiffstats
path: root/lib/private/Share/Share.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Share/Share.php')
-rw-r--r--lib/private/Share/Share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php
index 842dded0671..b9accda728c 100644
--- a/lib/private/Share/Share.php
+++ b/lib/private/Share/Share.php
@@ -139,9 +139,9 @@ class Share extends Constants {
$userManager = \OC::$server->getUserManager();
$userObject = $userManager->get($ownerUser);
- if (is_null($ownerUser)) {
+ if (is_null($userObject)) {
\OCP\Util::writeLog('files', ' Backends provided no user object for ' . $ownerUser, \OCP\Util::ERROR);
- throw new \OC\User\NoUserException('Backends provided no user object for ' . $ownerUser);
+ throw new \OC\User\NoUserException('Backends provided no user object');
}
$ownerUser = $userObject->getUID();