]> git.mxchange.org Git - friendica.git/commitdiff
also mark for death if there isn't any xml to be found
authorfriendica <info@friendica.com>
Fri, 15 Jun 2012 00:38:39 +0000 (17:38 -0700)
committerfriendica <info@friendica.com>
Fri, 15 Jun 2012 00:38:39 +0000 (17:38 -0700)
include/onepoll.php

index 804a166c80858c6a076de1755cabcbb41509aac6..22f29deb20e2c2f798e1055da025e57127394533 100644 (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'])