summaryrefslogtreecommitdiff
path: root/modules/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.module')
-rw-r--r--modules/profile.module4
1 files changed, 1 insertions, 3 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)) {