Workaround for Bugs in Class dba
This commit is contained in:
parent
019637123a
commit
80e96bcf38
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ class DBClean {
|
||||||
logger("Deleting old conversations. Last created: ".$last_id);
|
logger("Deleting old conversations. Last created: ".$last_id);
|
||||||
$r = dba::p("SELECT `received`, `item-uri` FROM `conversation`
|
$r = dba::p("SELECT `received`, `item-uri` FROM `conversation`
|
||||||
WHERE `received` < UTC_TIMESTAMP() - INTERVAL ? DAY
|
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);
|
$count = dba::num_rows($r);
|
||||||
if ($count > 0) {
|
if ($count > 0) {
|
||||||
logger("found old conversations: ".$count);
|
logger("found old conversations: ".$count);
|
||||||
|
|
Loading…
Reference in a new issue