From c98e5153d53a48ff2c9d90b4687a0060aecaef7e Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 23 Oct 2022 18:44:51 +0800 Subject: [PATCH] improve cleanup --- include/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cleanup.php b/include/cleanup.php index aa461cdb..c23af043 100644 --- a/include/cleanup.php +++ b/include/cleanup.php @@ -810,7 +810,7 @@ function docleanup($forceAll = 0, $printProgress = false) { } //17.update total seeding and leeching time of users - $res = sql_query("SELECT * FROM users") or sqlerr(__FILE__, __LINE__); + $res = sql_query("SELECT id FROM users where enabled = 'yes' and status = 'confirmed'") or sqlerr(__FILE__, __LINE__); while($arr = mysql_fetch_assoc($res)) { //die("s" . $arr['id']);