avoid multiple assignments to one variable

This commit is contained in:
Harald Bamberger
2026-08-03 19:30:49 +02:00
parent d1ca6eb988
commit 2686aee158
@@ -51,8 +51,8 @@ class OtherLvPlan extends FHCAPI_Controller
$isMitarbeiter = getData($isMitarbeiterResult);
$isStudent = !$isMitarbeiter;
$profileData = $this->profillib->getView($uid);
$profileData = hasData($profileData) ? getData($profileData) : null;
$resProfileData = $this->profillib->getView($uid);
$profileData = hasData($resProfileData) ? getData($resProfileData) : null;
$viewData = [
"user_data" => [