summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {