mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#906)
This commit is contained in:
parent
0cf8250c69
commit
34fd7ba2f8
7 changed files with 26 additions and 15 deletions
|
@ -13,7 +13,6 @@ if (!defined('BB_ROOT')) {
|
|||
|
||||
$pm_days_keep = (int)$bb_cfg['pm_days_keep'];
|
||||
|
||||
DB()->query("
|
||||
DELETE FROM " . BB_PRIVMSGS . "
|
||||
WHERE privmsgs_date < " . (TIMENOW - 86400 * $pm_days_keep) . "
|
||||
");
|
||||
if ($pm_days_keep !== 0) {
|
||||
DB()->query("DELETE FROM " . BB_PRIVMSGS . " WHERE privmsgs_date < " . (TIMENOW - 86400 * $pm_days_keep));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue