summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/Node/Root.php2
-rw-r--r--lib/private/Share/Share.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php
index 28438e8adbb..8434ed64008 100644
--- a/lib/private/Files/Node/Root.php
+++ b/lib/private/Files/Node/Root.php
@@ -351,7 +351,7 @@ class Root extends Folder implements IRootFolder {
if (is_null($userObject)) {
\OCP\Util::writeLog('files', 'Backends provided no user object for ' . $userId, \OCP\Util::ERROR);
- throw new \OC\User\NoUserException('Backends provided no user object for ' . $userId);
+ throw new \OC\User\NoUserException('Backends provided no user object');
}
$userId = $userObject->getUID();
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();