why do these have invalid id's?
This commit is contained in:
parent
83daf51460
commit
b75163fb80
@ -12,7 +12,7 @@ function onedirsync_run($argv, $argc){
|
||||
cli_startup();
|
||||
$a = get_app();
|
||||
|
||||
logger('onedirsync: start' . intval($argv[1]));
|
||||
logger('onedirsync: start ' . intval($argv[1]));
|
||||
|
||||
if(($argc > 1) && (intval($argv[1])))
|
||||
$update_id = intval($argv[1]);
|
||||
|
@ -242,7 +242,7 @@ function poller_run($argv, $argc){
|
||||
}
|
||||
|
||||
if($dirmode == DIRECTORY_MODE_SECONDARY || $dirmode == DIRECTORY_MODE_PRIMARY) {
|
||||
$r = q("select ud_id from updates where not ( ud_flags & %d ) and ud_addr != '' and ( ud_last = '0000-00-00 00:00:00' OR ud_last > UTC_TIMESTAMP() - INTERVAL 7 DAY ) ",
|
||||
$r = q("select * from updates where not ( ud_flags & %d ) and ud_addr != '' and ( ud_last = '0000-00-00 00:00:00' OR ud_last > UTC_TIMESTAMP() - INTERVAL 7 DAY ) ",
|
||||
intval(UPDATE_FLAGS_UPDATED)
|
||||
);
|
||||
if($r) {
|
||||
|
Reference in New Issue
Block a user