that should take care of the bitfields in hubloc
This commit is contained in:
@@ -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) && (intval($h[0]['hubloc_error'])))
|
||||
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']),
|
||||
|
||||
Reference in New Issue
Block a user