]> git.mxchange.org Git - friendica.git/commitdiff
added USE statement and changed statement as requested in #7305#discussion_r296461181
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 27 Aug 2019 05:10:51 +0000 (07:10 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 27 Aug 2019 05:10:51 +0000 (07:10 +0200)
src/Protocol/DFRN.php

index 273a7c248cc2651762ed1c6fa542818328a38491..f55a80a6fddeb6995ff330bc25e21f84826c2c0d 100644 (file)
@@ -20,6 +20,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\System;
+use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\Conversation;
@@ -2905,7 +2906,7 @@ class DFRN
                        // and the sense in the $remote[]["cid"] in the session are opposite.
                        // In the session variable the user currently fetching is the contact
                        // while $contact_nick is the nick of tho user who owns the stuff being fetched.
-                       foreach (\Friendica\Core\Session::get('remote', []) as $visitor) {
+                       foreach (Session::get('remote', []) as $visitor) {
                                if ($visitor['uid'] == $contact_uid && $visitor['cid'] == $r[0]['id']) {
                                        return;
                                }