And some more removed notices in the core (#5465)

This commit is contained in:
Michael Vogel 2018-07-23 13:43:18 +02:00 committed by Hypolite Petovan
parent cd52d0b3e9
commit 53876abfda
5 changed files with 48 additions and 46 deletions

View file

@ -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 = [];