aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-08 20:47:36 -0700
committerfriendica <info@friendica.com>2014-09-08 20:47:36 -0700
commit21290bffce4420ab78167531bd9c4163ed61f740 (patch)
tree0375b03ab861d220fa24b99993e0dc0e72d97d33
parentb56e49d196b439e94110b468f24c1d5fb1b5bb19 (diff)
downloadvolse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.tar.gz
volse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.tar.bz2
volse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.zip
one more time
-rw-r--r--include/poller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index 55794092e..c90e48d6b 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -341,8 +341,9 @@ function poller_run($argv, $argc){
}
if($dirmode == DIRECTORY_MODE_SECONDARY || $dirmode == DIRECTORY_MODE_PRIMARY) {
- $r = q("select distinct ud_addr, updates.* from updates where not ( ud_flags & %d ) and ud_addr != '' and ( ud_last = NULL_DATE OR ud_last > UTC_TIMESTAMP() - INTERVAL 7 DAY ) group by ud_addr ",
- intval(UPDATE_FLAGS_UPDATED)
+ $r = q("select distinct ud_addr, updates.* from updates where not ( ud_flags & %d ) and ud_addr != '' and ( ud_last = '%s' OR ud_last > UTC_TIMESTAMP() - INTERVAL 7 DAY ) group by ud_addr ",
+ intval(UPDATE_FLAGS_UPDATED),
+ dbesc(NULL_DATE)
);
if($r) {
foreach($r as $rr) {