mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Fixes several notices
This commit is contained in:
parent
2a402ef5ed
commit
84a9a5b174
3 changed files with 11 additions and 8 deletions
|
@ -1909,7 +1909,7 @@ class Contact
|
|||
$ret['pubkey'] = $new_pubkey;
|
||||
}
|
||||
|
||||
if (($ret['addr'] != $contact['addr']) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) {
|
||||
if ((!empty($ret['addr']) && ($ret['addr'] != $contact['addr'])) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) {
|
||||
$ret['uri-date'] = DateTimeFormat::utcNow();
|
||||
}
|
||||
|
||||
|
|
|
@ -129,9 +129,12 @@ class Mail
|
|||
}
|
||||
|
||||
$me = DBA::selectFirst('contact', [], ['uid' => local_user(), 'self' => true]);
|
||||
$contact = DBA::selectFirst('contact', [], ['id' => $recipient, 'uid' => local_user()]);
|
||||
if (!DBA::isResult($me)) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
if (!(count($me) && (count($contact)))) {
|
||||
$contact = DBA::selectFirst('contact', [], ['id' => $recipient, 'uid' => local_user()]);
|
||||
if (!DBA::isResult($contact)) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue