mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Fixed error provoked by previous commit
This commit is contained in:
		@@ -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){
 | 
			
		||||
 
 | 
			
		||||
@@ -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){
 | 
			
		||||
			
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user