From 1bdfb79290cb2d90bc04b4d0a61f02de43832290 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 10 Aug 2008 15:39:31 +0200 Subject: [PATCH] Ignore duplicates (Closes:#872) Signed-off-by: Florent Bruneau --- modules/xnetevents/xnetevents.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.1.4