move order by and rewrite similar in update_queue_item()

This commit is contained in:
DM42.Net (Matt Dent)
2019-01-13 14:41:44 -05:00
parent ab074f52fe
commit b4c1ca88f3
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ function update_queue_item($id, $add_priority = 0) {
return;
$y = q("select min(outq_created) as earliest from outq where outq_posturl = '%s'",
$y = q("select outq_created as earliest from outq where outq_posturl = '%s' order by earliest limit 1",
dbesc($x[0]['outq_posturl'])
);
@@ -311,4 +311,4 @@ function queue_deliver($outq, $immediate = false) {
return;
}
}
}