mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update clean_pm.php
This commit is contained in:
parent
f9b421e9ba
commit
652a26ad01
@ -17,9 +17,11 @@ if ($pm_days_keep != 0)
|
||||
$end_id = $start_id + $per_cycle - 1;
|
||||
|
||||
DB()->query("
|
||||
DELETE FROM " . BB_PRIVMSGS . "
|
||||
WHERE privmsgs_id BETWEEN $start_id AND $end_id
|
||||
AND privmsgs_date < " . (TIMENOW - 86400 * $pm_days_keep) . "
|
||||
DELETE pm, pmt
|
||||
FROM " . BB_PRIVMSGS . " pm
|
||||
LEFT JOIN " . BB_PRIVMSGS_TEXT . " pmt ON(pmt.privmsgs_text_id = pm.privmsgs_id)
|
||||
WHERE pm.privmsgs_id BETWEEN $start_id AND $end_id
|
||||
AND pm.privmsgs_date < " . (TIMENOW - 86400 * $pm_days_keep) . "
|
||||
");
|
||||
if ($end_id > $finish_id)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user