Commit d6b0588e authored by Penny Leach's avatar Penny Leach
Browse files

make sure we delete expired unready transfers as well as expired ready ones

parent 6b6f195e
......@@ -27,9 +27,9 @@ defined('INTERNAL') || die();
function import_process_queue() {
if (!$ready = get_records_array('import_queue',
'ready', 1, '',
'*,' . db_format_tsfield('expirytime', 'ex'))) {
if (!$ready = get_records_select_array('import_queue',
'ready = ? OR expirytime < ?', array(1, db_format_timestamp(time())),
'', '*,' . db_format_tsfield('expirytime', 'ex'))) {
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment