backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 31 May 2005 12:32:58 +0000 (12:32 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:05 +0000 (23:29 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.6--patch-27
   don't show dead pple birthday

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-669

bin/cron/notifs.birthday.php

index e2c10fb..39d9d37 100755 (executable)
@@ -29,7 +29,7 @@ $like  = date('%-m-d', time() + 7 * 24*60*60);
 $globals->db->query("INSERT INTO  watch_ops (uid, cid, known, date)
                           SELECT  user_id, 4, $stamp, '$date'
                             FROM  auth_user_md5
-                           WHERE  naissance LIKE '$like'");
+                           WHERE  naissance LIKE '$like' AND deces=0");
 
 
 ?>