diff --git a/src/act.php b/src/act.php index f783aa8..f404db9 100644 --- a/src/act.php +++ b/src/act.php @@ -1,8 +1,8 @@ 2"); -mysqli_query($lnMysql "DELETE FROM bot_modifs WHERE TIMESTAMPDIFF(DAY, NOW(), date_modification) > 2"); +mysqli_query($lnMysql, "DELETE FROM bots WHERE active='0' AND TIMESTAMPDIFF(DAY, NOW(), date_inscription) > 2"); +mysqli_query($lnMysql, "DELETE FROM bot_modifs WHERE TIMESTAMPDIFF(DAY, NOW(), date_modification) > 2"); switch($_POST['act']){ case "addBot":