also mark for death if there isn't any xml to be found

This commit is contained in:
friendica 2012-06-14 17:38:39 -07:00
parent 267681844d
commit 2efee75557

View file

@ -162,6 +162,9 @@ function onepoll_run($argv, $argc){
if(! strstr($handshake_xml,'<?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",
dbesc(datetime_convert()),
intval($contact['id'])