From 304d360205794687149dec7883bee1b2830ff02e Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sun, 30 May 2010 21:01:57 +0200 Subject: [PATCH] Prevent empty list creation (Closes #1010) --- ChangeLog | 3 +++ modules/xnetlists.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53c51bd..47f35eb 100644 --- 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 diff --git a/modules/xnetlists.php b/modules/xnetlists.php index aaa7519..6a22215 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -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 « adresse souhaitée Â» est vide.'); return; } -- 2.1.4