From: Pascal Corpet Date: Sun, 30 May 2010 19:01:57 +0000 (+0200) Subject: Prevent empty list creation (Closes #1010) X-Git-Tag: xorg/1.0.0~217 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=304d360205794687149dec7883bee1b2830ff02e;p=platal.git Prevent empty list creation (Closes #1010) --- 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; }