From 88e31f350c4b03041672ddb68463f71d858454e0 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 12 Jan 2009 09:35:35 +0100 Subject: [PATCH] Fix SQL error in watch_nonins. This is not a really fix, it only ignores the error (the entry is added twice). Signed-off-by: Florent Bruneau --- include/notifs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/notifs.inc.php b/include/notifs.inc.php index d48f010..8427bf9 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -446,7 +446,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); -- 2.1.4