From 0aff1c9268e760c2e1164f85ea8414ad0d1fa91c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 29 Aug 2017 11:06:37 +0200 Subject: Return the user id in case of an error Signed-off-by: Joas Schilling --- core/Controller/AvatarController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Controller') 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, ], ]); } -- cgit v1.2.3