Simplified code in the uexport
This commit is contained in:
parent
96147d331b
commit
7ca7bf2b35
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class UserExport extends BaseSettings
|
|||
// get all the contacts
|
||||
$contacts = DBA::select('contact', ['addr', 'url'], ['uid' => $_SESSION['uid'], 'self' => false, 'rel' => [1,3], 'deleted' => false]);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
echo ($contact['addr'] ? $contact['addr'] : $contact['url']) . ", true\n";
|
||||
echo ($contact['addr'] ?: $contact['url']) . ", true\n";
|
||||
}
|
||||
DBA::close($contacts);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue