aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php4
1 files changed, 2 insertions, 2 deletions
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']);
}
}