Skip to content

Commit

Permalink
make more type safe
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jul 2, 2024
1 parent ab2c25d commit ace05ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sildisco/public/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@
}
}

$technicalContactEmail = $config->getOptionalString('technicalcontact_email', false);
if ($technicalContactEmail && $technicalContactEmail !== '[email protected]') {
$technicalContactEmail = $config->getOptionalString('technicalcontact_email', null);
if (!empty($technicalContactEmail) && $technicalContactEmail !== '[email protected]') {
$techcontact['emailAddress'] = $technicalContactEmail;
$techcontact['name'] = $config->getOptionalString('technicalcontact_name', null);
$techcontact['contactType'] = 'technical';
Expand Down

0 comments on commit ace05ab

Please sign in to comment.