Merge branch 'platal-0.9.15'
[platal.git] / bin / cron / cron_ml_moderate.php
index febf47c..7642fdc 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php5 -q
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -21,6 +21,7 @@
  ***************************************************************************/
 
 require('./connect.db.inc.php');
+ini_set('max_execution_time', '75');
 $sent_mails = 0;
 $handler    = time();
 
@@ -68,7 +69,7 @@ while ($sent_mails < $globals->lists->max_mail_per_min
         $append  = "a été supprimé par $prenom $nom.\n\n"
                  . "Rappel: il ne faut utiliser cette opération "
                  . "que dans le cas de spams ou de virus !\n";
-        $count += $count($own);
+        $count += count($own);
         break;
     }