fix(Profil viewData): fixes little data conversion error in the endpoint

This commit is contained in:
SimonGschnell
2025-07-11 09:14:34 +02:00
parent 2deef8039d
commit c2cc1c5870
@@ -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;