From: x2000habouzit Date: Sat, 20 Nov 2004 10:16:06 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~882 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e6e7372cec3a7cb4321335c9b8e9fbf03ac1435e;p=platal.git backport --- diff --git a/scripts/cron/clean.php b/scripts/cron/clean.php index 7fec83d..5c4ee31 100755 --- a/scripts/cron/clean.php +++ b/scripts/cron/clean.php @@ -19,7 +19,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: clean.php,v 1.4 2004-11-07 11:58:16 x2000habouzit Exp $ + $Id: clean.php,v 1.5 2004-11-20 10:16:06 x2000habouzit Exp $ ***************************************************************************/ require('./connect.db.inc.php'); @@ -33,7 +33,7 @@ function query ($sql) { // la table des notifs est nettoyée $eight_days_ago = date("YmdHis",mktime() - 8*24*60*60); -query("DELETE FROM watch_ops WHERE known>$eight_days_ago"); +query("DELETE FROM watch_ops WHERE known<$eight_days_ago"); // la table en_cours est nettoyée query("DELETE FROM en_cours WHERE TO_DAYS(NOW()) - TO_DAYS(date) >= 365");