mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fetch email from callbook / last QSOs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user