Fixes FK contraint.
authorStéphane Jacob <sj@m4x.org>
Mon, 29 Nov 2010 14:25:36 +0000 (15:25 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 29 Nov 2010 14:25:36 +0000 (15:25 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetgrp.php

index e0ddcc2..5080fb5 100644 (file)
@@ -193,7 +193,7 @@ class XnetGrpModule extends PLModule
                              flags={?}
                       WHERE  id={?}",
                       Post::v('nom'), Post::v('diminutif'),
-                      Post::v('cat'), Post::i('dom'),
+                      Post::v('cat'), (Post::i('dom') == 0) ? null : Post::i('dom'),
                       Post::v('descr'), $site,
                       Post::v('mail'), Post::v('resp'),
                       Post::v('forum'), Post::v('mail_domain'),