]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
Rename selectOne to selectFirst
[friendica.git] / include / identity.php
index 91080b90c766dfb00b41d134374ede84375d251d..0c6224594234814b32cc32ec30447899fd507b20 100644 (file)
@@ -162,7 +162,7 @@ function get_profiledata_by_nick($nickname, $uid = 0, $profile = 0)
        if (remote_user() && count($_SESSION['remote'])) {
                foreach ($_SESSION['remote'] as $visitor) {
                        if ($visitor['uid'] == $uid) {
-                               $r = dba::selectOne('contact', ['profile-id'], ['id' => $visitor['cid']]);
+                               $r = dba::selectFirst('contact', ['profile-id'], ['id' => $visitor['cid']]);
                                if (DBM::is_result($r)) {
                                        $profile = $r['profile-id'];
                                }