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;