From 80e96bcf3874bfe5d1533ec4722040513941a807 Mon Sep 17 00:00:00 2001 From: miqrogroove Date: Thu, 21 Jun 2018 11:20:44 -0400 Subject: [PATCH] Workaround for Bugs in Class dba --- src/Worker/DBClean.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/DBClean.php b/src/Worker/DBClean.php index ffeee5dd68..deb23e8dd8 100644 --- a/src/Worker/DBClean.php +++ b/src/Worker/DBClean.php @@ -328,7 +328,7 @@ class DBClean { logger("Deleting old conversations. Last created: ".$last_id); $r = dba::p("SELECT `received`, `item-uri` FROM `conversation` WHERE `received` < UTC_TIMESTAMP() - INTERVAL ? DAY - ORDER BY `received` LIMIT ?", $days, intval($limit)); + ORDER BY `received` LIMIT ".intval($limit), $days); $count = dba::num_rows($r); if ($count > 0) { logger("found old conversations: ".$count); -- 2.39.5