From: Florent Bruneau Date: Sun, 15 Jun 2008 18:43:08 +0000 (+0200) Subject: Fix a SQL error. X-Git-Tag: core/1.0.0~103 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0b05d200e00849e0f3e110988e9d0a3e21e34eb9;p=platal.git Fix a SQL error. Use the previous commit to pass FlagSet to XDB Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index fecd5e2..dd3fe7d 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -248,9 +248,9 @@ class XnetGrpModule extends PLModule Post::v('forum'), Post::v('mail_domain'), Post::has('ax'), Post::v('pub'), Post::v('sub_url'), Post::v('inscriptible'), - Post::v('unsub_url'), $flags->flags(), $globals->asso('id')); + Post::v('unsub_url'), $flags, $globals->asso('id')); if (Post::v('mail_domain')) { - XDB::execute('INSERT INTO virtual_domains (domain) VALUES({?})', + XDB::execute('INSERT IGNORE INTO virtual_domains (domain) VALUES({?})', Post::v('mail_domain')); } } else { @@ -265,7 +265,7 @@ class XnetGrpModule extends PLModule Post::v('forum'), Post::has('ax'), Post::v('pub'), Post::v('sub_url'), Post::v('unsub_url'), - $flags->flags(), $globals->asso('id')); + $flags, $globals->asso('id')); } if ($_FILES['logo']['name']) {