From: Pierre Habouzit (MadCoder Date: Thu, 28 Apr 2005 12:37:47 +0000 (+0000) Subject: little bug X-Git-Tag: xorg/old~157 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e5cbf94e2ad4300c0acb30e298be259400e3c42f;p=platal.git little bug git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-605 --- diff --git a/htdocs.net/groupe/edit.php b/htdocs.net/groupe/edit.php index bdb6d0c..389e3e5 100644 --- a/htdocs.net/groupe/edit.php +++ b/htdocs.net/groupe/edit.php @@ -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