Skip to content

Commit 8903504

Browse files
Minor fix
1 parent 985c886 commit 8903504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiBundle/Controller/AuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public function editProfilePicAction()
471471
return new JsonResponse(array(
472472
'code' => 201,
473473
'show_message' => $this->get('translator')->trans($msg, array(), 'messages', $request->getLocale()),
474-
'image_url' => $this->getParameter('images_profile_dir').$user->getImage()
474+
'image_url' => $user->getImage() ? $this->getParameter('images_profile_dir').$user->getImage() : ''
475475
));
476476
}
477477

0 commit comments

Comments
 (0)