diff options
author | friendica <info@friendica.com> | 2014-09-08 20:47:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-08 20:47:36 -0700 |
commit | 21290bffce4420ab78167531bd9c4163ed61f740 (patch) | |
tree | 0375b03ab861d220fa24b99993e0dc0e72d97d33 /include | |
parent | b56e49d196b439e94110b468f24c1d5fb1b5bb19 (diff) | |
download | volse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.tar.gz volse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.tar.bz2 volse-hubzilla-21290bffce4420ab78167531bd9c4163ed61f740.zip |
one more time
Diffstat (limited to 'include')
-rw-r--r-- | include/poller.php | 5 |
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) { |