some poco fixes

This commit is contained in:
friendica
2013-01-22 20:48:03 -08:00
parent d43591fb0f
commit d06c21dc39
3 changed files with 43 additions and 45 deletions

View File

@@ -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;