merge bugfix
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 13 Nov 2005 17:04:38 +0000 (17:04 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 13 Nov 2005 17:04:38 +0000 (17:04 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@151 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/listes/create.php

index 8a296a3..10f4f29 100644 (file)
@@ -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 <enter>
 if (Post::has('add_owner_sub') && Post::has('add_owner')) {