]> git.mxchange.org Git - friendica.git/blobdiff - mod/hovercard.php
Added a for-loop (#5442)
[friendica.git] / mod / hovercard.php
index 0e8cc80f27ae962453b57988f4d005d037c3e890..f0dbe4873c7108aed1597ce22d46f8b402cb335e 100644 (file)
@@ -7,12 +7,13 @@
  * Author: Rabuzarus <https://github.com/rabuzarus>
  * License: GNU AFFERO GENERAL PUBLIC LICENSE (Version 3)
  */
+
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\System;
+use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\GContact;
-use Friendica\Model\Profile;
 
 function hovercard_init(App $a)
 {
@@ -46,7 +47,7 @@ function hovercard_content()
        $cid = 0;
        if (strpos($profileurl, 'redir/') === 0) {
                $cid = intval(substr($profileurl, 6));
-               $remote_contact = dba::selectFirst('contact', ['nurl'], ['id' => $cid]);
+               $remote_contact = DBA::selectFirst('contact', ['nurl'], ['id' => $cid]);
                $profileurl = defaults($remote_contact, 'nurl', '');
        }