mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Avoiding some notices
This commit is contained in:
parent
0760b41fac
commit
c1dec50248
3 changed files with 6 additions and 3 deletions
|
@ -579,6 +579,9 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function terminateFriendship(array $user, array $contact, $dissolve = false)
|
||||
{
|
||||
if (empty($contact['network'])) {
|
||||
return;
|
||||
}
|
||||
if (($contact['network'] == Protocol::DFRN) && $dissolve) {
|
||||
DFRN::deliver($user, $contact, 'placeholder', true);
|
||||
} elseif (in_array($contact['network'], [Protocol::OSTATUS, Protocol::DFRN])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue