From 50754bcbbabefdf86382836a50ba52b73bc353e1 Mon Sep 17 00:00:00 2001 From: radiskull Date: Sun, 28 Aug 2011 08:48:15 +0000 Subject: [PATCH] =?UTF-8?q?7=20durch=20Usergruppenkonstante=20in=20der=20L?= =?UTF-8?q?=C3=B6schquery=20ersetzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cronjob/training.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjob/training.php b/cronjob/training.php index 4d9ddaf..81ff9c6 100644 --- a/cronjob/training.php +++ b/cronjob/training.php @@ -187,7 +187,7 @@ mysql_query('DELETE FROM user_activation where TIMESTAMPDIFF(day, registerdate, mysql_query('DELETE FROM anon_chatter WHERE TIMESTAMPDIFF(day, online, now()) > 35'); // 5 Wochen // Loesche inaktive user! -$sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2 and id not in (SELECT user_id FROM user_gruppe_zuordnung WHERE gruppen_id = 7 AND user_id = id)'; +$sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2 and id not in (SELECT user_id FROM user_gruppe_zuordnung WHERE gruppen_id = '.aktiv_loeschschutz.' AND user_id = id)'; //echo $sql;