diff options
author | friendica <info@friendica.com> | 2015-01-20 15:35:42 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-20 15:35:42 -0800 |
commit | 6f11f20992c88ff48a55929e94d9003fcc437062 (patch) | |
tree | 8eecb1327151a63ac6cd0421c56e56bb18009164 /include/onedirsync.php | |
parent | 70fb47248b6579beabc81287750bc18aab2a7ddd (diff) | |
download | volse-hubzilla-6f11f20992c88ff48a55929e94d9003fcc437062.tar.gz volse-hubzilla-6f11f20992c88ff48a55929e94d9003fcc437062.tar.bz2 volse-hubzilla-6f11f20992c88ff48a55929e94d9003fcc437062.zip |
first cut at unpacking bitfields in hubloc, fixed hubloc_error and hubloc_deleted
Diffstat (limited to 'include/onedirsync.php')
-rw-r--r-- | include/onedirsync.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/onedirsync.php b/include/onedirsync.php index a1450e183..c94a1410f 100644 --- a/include/onedirsync.php +++ b/include/onedirsync.php @@ -55,7 +55,7 @@ function onedirsync_run($argv, $argc){ $h = q("select * from hubloc where hubloc_addr = '%s' limit 1", dbesc($r[0]['ud_addr']) ); - if(($h) && ($h[0]['hubloc_status'] & HUBLOC_OFFLINE)) { + if(($h) && (intval($h[0]['hubloc_error']))) $y = q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and ( ud_flags & %d ) = 0 and ud_date < '%s' ", intval(UPDATE_FLAGS_UPDATED), dbesc($r[0]['ud_addr']), |