diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-11 10:49:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-11 10:49:21 +0000 |
commit | 08f263fb23b2f6a59085dcf39ca8647982c49446 (patch) | |
tree | 3dd7fe94633101707ef367ee9ba34324481451de | |
parent | 388fe5b6d719ccec22e24b4d125df87e0e782f6c (diff) | |
download | brdo-08f263fb23b2f6a59085dcf39ca8647982c49446.tar.gz brdo-08f263fb23b2f6a59085dcf39ca8647982c49446.tar.bz2 |
- Patch #323386 by mariuss, Dries: select options includes comments -- inconsistent with documentation
-rw-r--r-- | modules/profile/profile.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index c5360461e..9d11b0a9d 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -438,7 +438,7 @@ function profile_form_profile($edit, $user, $category, $register = FALSE) { break; case 'selection': $options = $field->required ? array() : array('--'); - $lines = preg_split("/[,\n\r]/", $field->options); + $lines = preg_split("/[\n\r]/", $field->options); foreach ($lines as $line) { if ($line = trim($line)) { $options[$line] = $line; |