Fetch email from callbook / last QSOs

This commit is contained in:
phl0
2024-11-21 15:58:51 +01:00
parent 1f527771d3
commit 99fef495ce
5 changed files with 29 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ class Hamqth {
// we always want to return name and callsign
$data['callsign'] = (string)$xml->search->callsign;
$data['name'] = (string)$xml->search->nick;
$data['email'] = (string)$xml->search->email;
// only return certain data of a callsign which does not contain a pre- or suffix (see https://github.com/wavelog/wavelog/issues/452)
if ($reduced == false) {

View File

@@ -96,6 +96,8 @@ class Qrz {
$data['name'] = (string)$xml->Callsign->fname;
}
$data['email'] = (string)$xml->Callsign->email;
// we always give back the name, no matter if reduced data or not
$data['name'] = trim($data['name']);