REPLACE INTO should only be used if the data deletion is wanted.
[platal.git] / modules / xnetevents / xnetevents.inc.php
index feabfdb..a4ba097 100644 (file)
@@ -198,8 +198,8 @@ function subscribe_lists_event($uid, $evt, $participate, $paid, $payment = false
     function subscribe($list, $email)
     {
         if ($list && $email) {
-            XDB::execute('REPLACE INTO  virtual_redirect
-                                VALUES  ({?}, {?})',
+            XDB::execute('INSERT IGNORE INTO  virtual_redirect
+                                      VALUES  ({?}, {?})',
                          $list, $email);
         }
     }