Merge pull request #9300 from annando/simplified-uexport

Simplified code in the uexport
This commit is contained in:
Hypolite Petovan 2020-09-27 10:36:55 -04:00 committed by GitHub
commit 7c5f3a9c96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ class UserExport extends BaseSettings
// get all the contacts // get all the contacts
$contacts = DBA::select('contact', ['addr', 'url'], ['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)) { while ($contact = DBA::fetch($contacts)) {
echo ($contact['addr'] ? $contact['addr'] : $contact['url']) . ", true\n"; echo ($contact['addr'] ?: $contact['url']) . ", true\n";
} }
DBA::close($contacts); DBA::close($contacts);
} }