Commit 08f263fb authored by Dries's avatar Dries

- Patch #323386 by mariuss, Dries: select options includes comments --...

- Patch #323386 by mariuss, Dries: select options includes comments -- inconsistent with documentation
parent 388fe5b6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment