mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Prevent empty fields on contact export via CSV
This commit is contained in:
parent
4ba42bc06a
commit
845ab4b764
1 changed files with 2 additions and 2 deletions
|
@ -169,9 +169,9 @@ class UserExport extends BaseSettings
|
|||
// write the table header (like Mastodon)
|
||||
echo "Account address, Show boosts\n";
|
||||
// get all the contacts
|
||||
$contacts = DBA::select('contact', ['addr'], ['uid' => $_SESSION['uid'], 'self' => false, 'rel' => [1,3], 'deleted' => false]);
|
||||
$contacts = DBA::select('contact', ['addr', 'url'], ['uid' => $_SESSION['uid'], 'self' => false, 'rel' => [1,3], 'deleted' => false]);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
echo $contact['addr'] . ", true\n";
|
||||
echo ($contact['addr'] ? $contact['addr'] : $contact['url']) . ", true\n";
|
||||
}
|
||||
DBA::close($contacts);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue