From: x2000habouzit Date: Sun, 13 Nov 2005 17:04:06 +0000 (+0000) Subject: fix bug in ML creation X-Git-Tag: xorg/0.9.8~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c4efdfd602a4bba28e4fa64c5cac8e4b4504764e;p=platal.git fix bug in ML creation git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.8@150 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs/listes/create.php b/htdocs/listes/create.php index 8a296a3..10f4f29 100644 --- a/htdocs/listes/create.php +++ b/htdocs/listes/create.php @@ -22,8 +22,8 @@ require_once("xorg.inc.php"); new_skinned_page('listes/create.tpl', AUTH_MDP); -$owners = preg_split("/[\r\n]+/",Post::get('owners'), -1, PREG_SPLIT_NO_EMPTY); -$members = preg_split("/[\r\n]+/",Post::get('members'), -1, PREG_SPLIT_NO_EMPTY); +$owners = preg_split("/[\s]+/",Post::get('owners'), -1, PREG_SPLIT_NO_EMPTY); +$members = preg_split("/[\s]+/",Post::get('members'), -1, PREG_SPLIT_NO_EMPTY); // click on validate button 'add_owner_sub' or type if (Post::has('add_owner_sub') && Post::has('add_owner')) {