summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-08-29 11:06:37 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-29 11:10:30 +0200
commit0aff1c9268e760c2e1164f85ea8414ad0d1fa91c (patch)
tree958dd8e32bd925f0cf0b49e1bedb43d864f3d832 /core/Controller
parent5adc1efe9fef473bb81414682386d1b0563ff859 (diff)
downloadnextcloud-server-0aff1c9268e760c2e1164f85ea8414ad0d1fa91c.tar.gz
nextcloud-server-0aff1c9268e760c2e1164f85ea8414ad0d1fa91c.zip
Return the user id in case of an error
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/AvatarController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index cb0ece9fa45..e4d13d218a5 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -143,7 +143,7 @@ class AvatarController extends Controller {
} catch (\Exception $e) {
$resp = new JSONResponse([
'data' => [
- 'displayname' => '',
+ 'displayname' => $userId,
],
]);
}