Prevents groups with empty diminutives from being created.
authorStéphane Jacob <sj@m4x.org>
Wed, 28 Oct 2009 22:15:36 +0000 (23:15 +0100)
committerStéphane Jacob <sj@m4x.org>
Thu, 29 Oct 2009 18:38:43 +0000 (19:38 +0100)
modules/xnet.php

index 5f0145e..87be73a 100644 (file)
@@ -111,7 +111,7 @@ class XnetModule extends PLModule
             }
         }
 
-        if (Post::has('diminutif')) {
+        if (Post::has('diminutif') && Post::v('diminutif') != "") {
             S::assert_xsrf_token();
 
             $res = XDB::query('SELECT  COUNT(*)