From 7e0807780a250a0b39f6a423f1634010b1ce15b8 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 23 Dec 2017 18:21:48 +0100 Subject: [PATCH] Fixed error provoked by previous commit --- RestControllers/userController.php | 2 -- classes/components/user.php | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RestControllers/userController.php b/RestControllers/userController.php index 8c3fa98..c5f0458 100644 --- a/RestControllers/userController.php +++ b/RestControllers/userController.php @@ -138,8 +138,6 @@ class userController if(count($userInfos) == 0) Rest_fatal_error(500, "Couldn't get informations about the user !"); - //Add account image url - $userInfos['accountImage'] = CS::get()->components->accountImage->getPath($userID); //Get the number of friends (if allowed) if($userInfos['friend_list_public'] === true){ diff --git a/classes/components/user.php b/classes/components/user.php index 3e9265c..c61ec7f 100644 --- a/classes/components/user.php +++ b/classes/components/user.php @@ -236,6 +236,9 @@ class User{ $return['openPage'] = $userInfos['pageouverte'] == 1; $return['virtualDirectory'] = $userInfos['sous_repertoire']; + //Add account image url + $return['accountImage'] = CS::get()->components->accountImage->getPath($return['userID']); + //Check if we have to fetch advanced informations if($advanced){