Fix a SQL error.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 15 Jun 2008 18:43:08 +0000 (20:43 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 15 Jun 2008 18:43:08 +0000 (20:43 +0200)
Use the previous commit to pass FlagSet to XDB

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetgrp.php

index fecd5e2..dd3fe7d 100644 (file)
@@ -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']) {