mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 14:32:18 +00:00
fix(Profil viewData): fixes little data conversion error in the endpoint
This commit is contained in:
@@ -59,10 +59,10 @@ class Profil extends FHCAPI_Controller
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
// Public methods
|
||||
public function profilViewData($uid){
|
||||
$uid = json_decode($uid);
|
||||
$uid = $uid;
|
||||
$this->load->library('ProfilLib');
|
||||
$editable = false;
|
||||
if(isset($uid) && $uid != null){
|
||||
if(isset($uid) && $uid != "null"){
|
||||
$profil_data = $this->profillib->getView($uid);
|
||||
if($uid == getAuthUID()){
|
||||
$editable = true;
|
||||
|
||||
Reference in New Issue
Block a user