]> git.mxchange.org Git - friendica.git/commitdiff
Simplified code in the uexport
authorMichael <heluecht@pirati.ca>
Sun, 27 Sep 2020 14:08:41 +0000 (14:08 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 27 Sep 2020 14:08:41 +0000 (14:08 +0000)
src/Module/Settings/UserExport.php

index 25e305e42387afe64dce6e00d4576c6cb533b179..a07116785fc85f8f9d8dcc30a8ae17ae052f0e47 100644 (file)
@@ -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);
        }