#58568: Multiple profile selection boxes repeat items

4.7.x
Steven Wittens 2006-04-13 13:21:15 +00:00
parent 027f9836bc
commit 506c80bdb9
2 changed files with 2 additions and 6 deletions

View File

@ -660,9 +660,7 @@ function profile_form_profile($edit, $user, $category) {
);
break;
case 'selection':
if (!$field->required) {
$options = array('--');
}
$options = $field->required ? array() : array('--');
$lines = split("[,\n\r]", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {

View File

@ -660,9 +660,7 @@ function profile_form_profile($edit, $user, $category) {
);
break;
case 'selection':
if (!$field->required) {
$options = array('--');
}
$options = $field->required ? array() : array('--');
$lines = split("[,\n\r]", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {