also mark for death if there isn't any xml to be found
This commit is contained in:
parent
267681844d
commit
2efee75557
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ function onepoll_run($argv, $argc){
|
||||||
|
|
||||||
if(! strstr($handshake_xml,'<?xml')) {
|
if(! strstr($handshake_xml,'<?xml')) {
|
||||||
logger('poller: response from ' . $url . ' did not contain XML.');
|
logger('poller: response from ' . $url . ' did not contain XML.');
|
||||||
|
|
||||||
|
mark_for_death($contact);
|
||||||
|
|
||||||
$r = q("UPDATE `contact` SET `last-update` = '%s' WHERE `id` = %d LIMIT 1",
|
$r = q("UPDATE `contact` SET `last-update` = '%s' WHERE `id` = %d LIMIT 1",
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
intval($contact['id'])
|
intval($contact['id'])
|
||||||
|
|
Loading…
Reference in a new issue