]> git.mxchange.org Git - friendica.git/commitdiff
Update view/theme/frio/theme.php
authorMichael Vogel <icarus@dabo.de>
Wed, 5 Aug 2020 03:39:00 +0000 (05:39 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 03:39:00 +0000 (05:39 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
view/theme/frio/theme.php

index 3ac04fced5308ee81053ac99b104a48479f60588..efba1677982fe5970a6faf5a382531db2eefae18 100644 (file)
@@ -195,7 +195,7 @@ function frio_remote_nav($a, &$nav)
        // this isn't optimal because the contact query will be done now twice
        $fields = ['id', 'url', 'avatar', 'micro', 'name', 'nick', 'baseurl'];
        if (local_user() && !empty($a->user['uid'])) {
-               $remoteUser = DBA::selectFirst('contact', $fields, ['uid' => $a->user['uid'], 'self' => true]);
+               $remoteUser = Contact::selectFirst($fields, ['uid' => $a->user['uid'], 'self' => true]);
        } elseif (!local_user() && remote_user()) {
                $remoteUser = Contact::getById(remote_user(), $fields);
                $nav['remote'] = DI::l10n()->t('Guest');