diff options
Diffstat (limited to 'modules/profile.module')
-rw-r--r-- | modules/profile.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/profile.module b/modules/profile.module index 48c8e1aa9..64814694e 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -660,7 +660,9 @@ function profile_form_profile($edit, $user, $category) { ); break; case 'selection': - $options = array('--'); + if (!$field->required) { + $options = array('--'); + } $lines = split("[,\n\r]", $field->options); foreach ($lines as $line) { if ($line = trim($line)) { |