mirror of
https://github.com/friendica/friendica
synced 2025-04-25 18:30:11 +00:00
And some more removed notices in the core (#5465)
This commit is contained in:
parent
cd52d0b3e9
commit
53876abfda
5 changed files with 48 additions and 46 deletions
|
@ -1218,9 +1218,16 @@ class DFRN
|
|||
|
||||
$res = XML::parseString($xml);
|
||||
|
||||
if ((intval($res->status) != 0) || !strlen($res->challenge) || !strlen($res->dfrn_id)) {
|
||||
if (!is_object($res) || (intval($res->status) != 0) || !strlen($res->challenge) || !strlen($res->dfrn_id)) {
|
||||
Contact::markForArchival($contact);
|
||||
return ($res->status ? $res->status : 3);
|
||||
|
||||
if (empty($res->status)) {
|
||||
$status = 3;
|
||||
} else {
|
||||
$status = $res->status;
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
$postvars = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue