X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Faxletter%2Faxletter.inc.php;h=8c28586013390e4e29130607dd4023e13fb51565;hb=4a0746a82545651c559ea3e593c810ce6fdef6a7;hp=53c7dd3039af3d2b0eeb146f8b3ee25311438374;hpb=12ddbc2037b16496dfb9d91c4f7091850146fcde;p=platal.git diff --git a/modules/axletter/axletter.inc.php b/modules/axletter/axletter.inc.php index 53c7dd3..8c28586 100644 --- a/modules/axletter/axletter.inc.php +++ b/modules/axletter/axletter.inc.php @@ -131,8 +131,8 @@ class AXLetter extends MassMailer static public function subscribe($uid = null) { $user = is_null($uid) ? S::v('uid') : $uid; - XDB::execute("REPLACE INTO axletter_ins (uid,last) - VALUES ({?}, 0)", $user); + XDB::execute('INSERT IGNORE INTO axletter_ins (uid, last) + VALUES ({?}, 0)', $user); } static public function hasPerms()