diff --git a/modules/sildisco/public/metadata.php b/modules/sildisco/public/metadata.php index 45f7464..be4fb18 100644 --- a/modules/sildisco/public/metadata.php +++ b/modules/sildisco/public/metadata.php @@ -192,8 +192,8 @@ } } - $technicalContactEmail = $config->getOptionalString('technicalcontact_email', false); - if ($technicalContactEmail && $technicalContactEmail !== 'na@example.org') { + $technicalContactEmail = $config->getOptionalString('technicalcontact_email', null); + if (!empty($technicalContactEmail) && $technicalContactEmail !== 'na@example.org') { $techcontact['emailAddress'] = $technicalContactEmail; $techcontact['name'] = $config->getOptionalString('technicalcontact_name', null); $techcontact['contactType'] = 'technical';