From 378ec0680baf24db4f6ec3a5ca6640fbec341822 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Sep 2004 18:13:48 +0000 Subject: [PATCH] fixed bug reported on the german mailinglist: - Warning implode wrong arguments on line 120 - space after comma is not ignored --- addressbook/csv_import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/csv_import.php b/addressbook/csv_import.php index accdb1772e..6536c2516c 100644 --- a/addressbook/csv_import.php +++ b/addressbook/csv_import.php @@ -90,7 +90,8 @@ return ''; } - foreach(split('[,;]',$cats) as $cat) + $ids = array(); + foreach(split(' *[,;] *',$cats) as $cat) { if(isset($cat2id[$cat])) {