]> git.mxchange.org Git - friendica.git/commitdiff
Workaround for Bugs in Class dba
authormiqrogroove <miqrogroove@gmail.com>
Thu, 21 Jun 2018 15:20:44 +0000 (11:20 -0400)
committerGitHub <noreply@github.com>
Thu, 21 Jun 2018 15:20:44 +0000 (11:20 -0400)
src/Worker/DBClean.php

index ffeee5dd68ef00003f8163b23511088722f8f4d3..deb23e8dd8c901e7a9f0b83298b894776026623b 100644 (file)
@@ -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);