aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authorDM42.Net (Matt Dent) <dentm42@dm42.net>2019-01-13 14:41:44 -0500
committerDM42.Net (Matt Dent) <dentm42@dm42.net>2019-01-13 14:41:44 -0500
commitb4c1ca88f32420cc1653e11811bad74d6f0231a5 (patch)
tree8fdc723ef5589efe88b063a9366fee8ddf8952d8 /include/queue_fn.php
parentab074f52fece902d1057f531c5289562a7d5343f (diff)
downloadvolse-hubzilla-b4c1ca88f32420cc1653e11811bad74d6f0231a5.tar.gz
volse-hubzilla-b4c1ca88f32420cc1653e11811bad74d6f0231a5.tar.bz2
volse-hubzilla-b4c1ca88f32420cc1653e11811bad74d6f0231a5.zip
move order by and rewrite similar in update_queue_item()
Diffstat (limited to 'include/queue_fn.php')
-rw-r--r--include/queue_fn.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php
index f7e2922c6..85f98aaf9 100644
--- a/include/queue_fn.php
+++ b/include/queue_fn.php
@@ -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;
}
-} \ No newline at end of file
+}