little bug
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 28 Apr 2005 12:37:47 +0000 (12:37 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:48 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-605

htdocs.net/groupe/edit.php

index bdb6d0c..389e3e5 100644 (file)
@@ -12,7 +12,9 @@
                   Post::get('nom'), Post::get('diminutif'), Post::get('cat'), Post::getInt('dom'),
                   Post::get('descr'), Post::get('site'), Post::get('mail'), Post::get('resp'),
                   Post::get('forum'), Post::get('mail_domain'), Post::has('ax'), $globals->asso('id'));
-            $globals->xdb->execute('INSERT INTO virtual_domains (domain) VALUES({?})', Post::get('mail_domain'));
+            if (Post::get('mail_domain')) {
+                $globals->xdb->execute('INSERT INTO virtual_domains (domain) VALUES({?})', Post::get('mail_domain'));
+            }
         } else {
             $globals->xdb->execute(
                 "UPDATE  groupex.asso