mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-14 23:12:23 +02:00
fix delete logs
This commit is contained in:
parent
c906d47674
commit
2d095aef08
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ switch ($action) {
|
||||||
$q = (_post('q') ? _post('q') : _get('q'));
|
$q = (_post('q') ? _post('q') : _get('q'));
|
||||||
$keep = _post('keep');
|
$keep = _post('keep');
|
||||||
if (!empty($keep)) {
|
if (!empty($keep)) {
|
||||||
ORM::raw_execute("DELETE FROM tbl_logs WHERE date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL $keep DAY))");
|
ORM::raw_execute("DELETE FROM tbl_logs WHERE UNIX_TIMESTAMP(date) < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL $keep DAY))");
|
||||||
r2(U . "logs/list/", 's', "Delete logs older than $keep days");
|
r2(U . "logs/list/", 's', "Delete logs older than $keep days");
|
||||||
}
|
}
|
||||||
if ($q != '') {
|
if ($q != '') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue