From: Florent Bruneau Date: Sun, 10 Aug 2008 13:39:31 +0000 (+0200) Subject: Ignore duplicates (Closes:#872) X-Git-Tag: xorg/0.10.0~140 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1bdfb79290cb2d90bc04b4d0a61f02de43832290;p=platal.git Ignore duplicates (Closes:#872) Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index 4a69b7a..214e1a7 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -302,7 +302,7 @@ function event_change_shortname(&$page, $eid, $old, $new) $lastid = XDB::insertId(); XDB::execute( - "INSERT INTO virtual_redirect ( + "INSERT IGNORE INTO virtual_redirect ( SELECT {?} AS vid, IF(u.nom IS NULL, m.email, CONCAT(a.alias, {?})) AS redirect FROM groupex.evenements_participants AS ep LEFT JOIN groupex.membres AS m ON (ep.uid = m.uid)