aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-14 17:38:39 -0700
committerfriendica <info@friendica.com>2012-06-14 17:38:39 -0700
commit2efee75557bafc32b20be1cceac047fdeea3bb71 (patch)
treeca1a9a48ed40f4a07ecba49d35f259ba5fa0b6b6
parent267681844d81364afce37c86f92b803c3d8e4c48 (diff)
downloadvolse-hubzilla-2efee75557bafc32b20be1cceac047fdeea3bb71.tar.gz
volse-hubzilla-2efee75557bafc32b20be1cceac047fdeea3bb71.tar.bz2
volse-hubzilla-2efee75557bafc32b20be1cceac047fdeea3bb71.zip
also mark for death if there isn't any xml to be found
-rw-r--r--include/onepoll.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index 804a166c8..22f29deb2 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -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'])