summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-04-13 13:21:15 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-04-13 13:21:15 +0000
commit506c80bdb9a6ee159512fe8c62ba1a79ad46259d (patch)
tree85fcc7e77a65576ad2a826b4c00e7793bdb4003f
parent027f9836bcfb33f6db2039f4ace9f2efad5db100 (diff)
downloadbrdo-506c80bdb9a6ee159512fe8c62ba1a79ad46259d.tar.gz
brdo-506c80bdb9a6ee159512fe8c62ba1a79ad46259d.tar.bz2
#58568: Multiple profile selection boxes repeat items
-rw-r--r--modules/profile.module4
-rw-r--r--modules/profile/profile.module4
2 files changed, 2 insertions, 6 deletions
diff --git a/modules/profile.module b/modules/profile.module
index 64814694e..d355a2d82 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -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)) {
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 64814694e..d355a2d82 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -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)) {