X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fnotifs.inc.php;h=cf3023df891fb5621130fd02cf17b496cea173d7;hb=1dc71da137a384e771723b8a893539a7f5cc9fab;hp=a82e703045d5d9699fd6d9a72fbfef9ff435ab4e;hpb=f497128a7c26c25a64e05453ea479520149e2cb7;p=platal.git diff --git a/include/notifs.inc.php b/include/notifs.inc.php index a82e703..cf3023d 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -1,6 +1,6 @@ updateNbNotifs(); } @@ -138,7 +146,7 @@ function select_notifs($mail, $uid=null, $last=null, $iterator=true) // {{{ global $prf_desc; -$prf_desc = array('nom' => 'Son patronyme', +$prf_desc = array('search_names' => 'L\'un de ses noms', 'freetext' => 'Le texte libre', 'mobile' => 'Son numéro de téléphone portable', 'nationalite' => 'Sa nationalité', @@ -152,6 +160,7 @@ $prf_desc = array('nom' => 'Son patronyme', 'binets' => 'La liste de ses binets', 'medals' => 'Ses décorations', 'cv' => 'Son Curriculum Vitae', + 'corps' => 'Son Corps d\'État', 'jobs' => 'Ses informations professionnelles', 'photo' => 'Sa photographie'); @@ -447,7 +456,7 @@ class NoninsNotifs public function add($p) { - XDB::execute('INSERT INTO watch_nonins (uid,ni_id) VALUES({?},{?})', $this->_uid, $p); + XDB::execute('INSERT IGNORE INTO watch_nonins (uid,ni_id) VALUES({?},{?})', $this->_uid, $p); $res = XDB::query('SELECT prenom,IF(nom_usage="",nom,nom_usage) AS nom,promo,user_id FROM auth_user_md5 WHERE user_id={?}', $p);