mirror of
https://github.com/friendica/friendica
synced 2024-11-11 07:02:53 +00:00
Fix a notice because of invalid return data
This commit is contained in:
parent
052659517b
commit
39133a1e0e
1 changed files with 9 additions and 0 deletions
|
@ -301,6 +301,15 @@ class OnePoll
|
||||||
|
|
||||||
$res = XML::parseString($handshake_xml);
|
$res = XML::parseString($handshake_xml);
|
||||||
|
|
||||||
|
if (!is_object($res)) {
|
||||||
|
Logger::info('Unparseable response', ['url' => $url]);
|
||||||
|
|
||||||
|
$fields = ['last-update' => $updated, 'failure_update' => $updated];
|
||||||
|
self::updateContact($contact, $fields);
|
||||||
|
Contact::markForArchival($contact);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (intval($res->status) == 1) {
|
if (intval($res->status) == 1) {
|
||||||
// we may not be friends anymore. Will keep trying for one month.
|
// we may not be friends anymore. Will keep trying for one month.
|
||||||
Logger::log("$url replied status 1 - marking for death ");
|
Logger::log("$url replied status 1 - marking for death ");
|
||||||
|
|
Loading…
Reference in a new issue