From 7ca7bf2b353d87ca4e90476483b5c0ced94d96eb Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 27 Sep 2020 14:08:41 +0000 Subject: [PATCH] Simplified code in the uexport --- src/Module/Settings/UserExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Settings/UserExport.php b/src/Module/Settings/UserExport.php index 25e305e423..a07116785f 100644 --- a/src/Module/Settings/UserExport.php +++ b/src/Module/Settings/UserExport.php @@ -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); }