Prevent empty list creation (Closes #1010)
authorPascal Corpet <pascal.corpet@m4x.org>
Sun, 30 May 2010 19:01:57 +0000 (21:01 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Sun, 30 May 2010 19:01:57 +0000 (21:01 +0200)
ChangeLog
modules/xnetlists.php

index 53c51bd..47f35eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,9 @@ Bug/Wish:
         - #450: Adds marital name, thus ordinary name can be any name      -JAC
         - #891: Improves education display                                 -JAC
 
+    * XnetLists:
+        - #1010: Prevent empty list creation                               -Car
+
 ================================================================================
 VERSION 0.10.2                                                        13 11 2009
 
index aaa7519..6a22215 100644 (file)
@@ -142,7 +142,7 @@ class XnetListsModule extends ListsModule
             S::assert_xsrf_token();
         }
 
-        if (!Post::has('liste')) {
+        if (!Post::has('liste') || !Post::v('liste')) {
             $page->trigError('Le champs «&nbsp;adresse souhaitée&nbsp;» est vide.');
             return;
         }