From 506c80bdb9a6ee159512fe8c62ba1a79ad46259d Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 13 Apr 2006 13:21:15 +0000 Subject: #58568: Multiple profile selection boxes repeat items --- modules/profile.module | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/profile.module') 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)) { -- cgit v1.2.3