mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
Rename selectOne to selectFirst
This commit is contained in:
parent
c7a7658316
commit
ae66bcaff3
51 changed files with 821 additions and 821 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue