aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-22 20:48:03 -0800
committerfriendica <info@friendica.com>2013-01-22 20:48:03 -0800
commitd06c21dc39b21d58f4c50e0f243a1d95c4137a6b (patch)
tree0be8e36e6443769fe8f9c0e8f008cdc8de5d1da0 /include/onepoll.php
parentd43591fb0f5c552b1c725dc2cbaeaea8fe441319 (diff)
downloadvolse-hubzilla-d06c21dc39b21d58f4c50e0f243a1d95c4137a6b.tar.gz
volse-hubzilla-d06c21dc39b21d58f4c50e0f243a1d95c4137a6b.tar.bz2
volse-hubzilla-d06c21dc39b21d58f4c50e0f243a1d95c4137a6b.zip
some poco fixes
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index 4b44ff5b9..019fe8ed3 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -113,16 +113,14 @@ function onepoll_run($argv, $argc){
// set last updated timestamp
- $r = null;
-
if($contact['xchan_connurl']) {
$r = q("SELECT xlink_id from xlink
where xlink_xchan = '%s' and xlink_updated > UTC_TIMESTAMP() - INTERVAL 1 DAY",
intval($contact['xchan_hash'])
);
- }
- if($r) {
- poco_load($contact['xchan_hash'],$contact['xchan_connurl']);
+ if($r) {
+ poco_load($contact['xchan_hash'],$contact['xchan_connurl']);
+ }
}
return;