diff --git a/src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php b/src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php index a5d429f..d2c7026 100644 --- a/src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php +++ b/src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php @@ -209,7 +209,7 @@ public function lookup($cpr, $fetchChildren = TRUE, $allowCprTestModeReplace = T $childCprResult = $this->lookup($relationshipChild->personnummer, FALSE, FALSE); if ($childCprResult->isSuccessful() && $childCprResult->hasGuardian($cpr)) { - $child['name'] = $childCprResult->getName() ?? $childCprResult->getCpr(); + $child['name'] = !empty($childCprResult->getName()) ? $childCprResult->getName() : $childCprResult->getCpr(); $child = [ 'cpr' => $relationshipChild->personnummer,