From ace05ab9e3fb6e64d35a2dac7ba4c2b9fb8e453a Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:33:25 -0600 Subject: [PATCH] make more type safe --- modules/sildisco/public/metadata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';