And some more removed notices in the core (#5465)
This commit is contained in:
committed by
Hypolite Petovan
parent
cd52d0b3e9
commit
53876abfda
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user