From 4f7f547190f5ec2557739aad6b2c09e3f45cdc76 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 24 Jan 2013 14:31:57 -0800 Subject: why oh why is poco_load not getting called? oh - that's why. --- include/onepoll.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/onepoll.php') diff --git a/include/onepoll.php b/include/onepoll.php index 019fe8ed3..bb8c91dd7 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -115,10 +115,10 @@ function onepoll_run($argv, $argc){ if($contact['xchan_connurl']) { $r = q("SELECT xlink_id from xlink - where xlink_xchan = '%s' and xlink_updated > UTC_TIMESTAMP() - INTERVAL 1 DAY", + where xlink_xchan = '%s' and xlink_updated > UTC_TIMESTAMP() - INTERVAL 1 DAY limit 1", intval($contact['xchan_hash']) ); - if($r) { + if(! $r) { poco_load($contact['xchan_hash'],$contact['xchan_connurl']); } } -- cgit v1.2.3