Add a test on registration to catch too hesitant usurpers
[platal.git] / include / notifs.inc.php
index 714e97f..ce48358 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -197,7 +197,7 @@ class Notifs {
             $this->_cats[$tmp['id']] = $tmp;
         }
 
-        $lastweek = date('YmdHis',mktime() - 7*24*60*60);
+        $lastweek = date('YmdHis', time() - 7*24*60*60);
 
         // recupere les notifs du watcher $uid, sans detail sur le watcher,
         // depuis la semaine dernière, meme ceux sans surveillance, ordonnés