의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Fix selectFirst usage in Model\Contact
This commit is contained in:
부모
47e0900220
커밋
3f078d81ce
1개의 변경된 파일과 3개의 추가작업 그리고 5개의 파일을 삭제
|
@ -1246,15 +1246,13 @@ class Contact extends BaseObject
|
|||
);
|
||||
}
|
||||
|
||||
$r = dba::selectFirst('contact', ['url' => $ret['url'], 'network' => $ret['network'], 'uid' => $uid]);
|
||||
|
||||
if (!DBM::is_result($r)) {
|
||||
$contact = dba::selectFirst('contact', [], ['url' => $ret['url'], 'network' => $ret['network'], 'uid' => $uid]);
|
||||
if (!DBM::is_result($contact)) {
|
||||
$result['message'] .= t('Unable to retrieve contact information.') . EOL;
|
||||
return $result;
|
||||
}
|
||||
|
||||
$contact = $r;
|
||||
$contact_id = $r['id'];
|
||||
$contact_id = $contact['id'];
|
||||
$result['cid'] = $contact_id;
|
||||
|
||||
Group::addMember(User::getDefaultGroup($uid, $contact["network"]), $contact_id);
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue