diff options
author | Joas Schilling <coding@schilljs.com> | 2017-08-29 11:06:37 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-29 11:10:30 +0200 |
commit | 0aff1c9268e760c2e1164f85ea8414ad0d1fa91c (patch) | |
tree | 958dd8e32bd925f0cf0b49e1bedb43d864f3d832 /core/Controller | |
parent | 5adc1efe9fef473bb81414682386d1b0563ff859 (diff) | |
download | nextcloud-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.php | 2 |
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, ], ]); } |