mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Rename selectOne to selectFirst
This commit is contained in:
parent
c7a7658316
commit
ae66bcaff3
51 changed files with 821 additions and 821 deletions
|
@ -224,12 +224,12 @@ function common_friends_visitor_widget($profile_uid)
|
|||
|
||||
if (!$cid) {
|
||||
if (get_my_url()) {
|
||||
$r = dba::selectOne('contact', ['id'],
|
||||
$r = dba::selectFirst('contact', ['id'],
|
||||
['nurl' => normalise_link(get_my_url()), 'uid' => $profile_uid]);
|
||||
if (DBM::is_result($r)) {
|
||||
$cid = $r['id'];
|
||||
} else {
|
||||
$r = dba::selectOne('gcontact', ['id'], ['nurl' => normalise_link(get_my_url())]);
|
||||
$r = dba::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(get_my_url())]);
|
||||
if (DBM::is_result($r)) {
|
||||
$zcid = $r['id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue