aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-23 21:48:34 -0800
committerfriendica <info@friendica.com>2015-01-23 21:48:34 -0800
commitbefe77a93f305c56db2f96604fabebaec6399cb9 (patch)
tree7a944681dd0fa22847d364a171cca42dd4b33a07
parent7cd4374e3d2833725beeb1c3b65687dc0856619c (diff)
downloadvolse-hubzilla-befe77a93f305c56db2f96604fabebaec6399cb9.tar.gz
volse-hubzilla-befe77a93f305c56db2f96604fabebaec6399cb9.tar.bz2
volse-hubzilla-befe77a93f305c56db2f96604fabebaec6399cb9.zip
onedirsync issue reported by habeas codice
-rw-r--r--include/onedirsync.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/onedirsync.php b/include/onedirsync.php
index a1450e183..de8dab92d 100644
--- a/include/onedirsync.php
+++ b/include/onedirsync.php
@@ -56,11 +56,10 @@ function onedirsync_run($argv, $argc){
dbesc($r[0]['ud_addr'])
);
if(($h) && ($h[0]['hubloc_status'] & HUBLOC_OFFLINE)) {
- $y = q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and ( ud_flags & %d ) = 0 and ud_date < '%s' ",
+ $y = q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and ( ud_flags & %d ) = 0 ",
intval(UPDATE_FLAGS_UPDATED),
dbesc($r[0]['ud_addr']),
- intval(UPDATE_FLAGS_UPDATED),
- dbesc($x[0]['ud_date'])
+ intval(UPDATE_FLAGS_UPDATED)
);
return;