1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

fixed uc_dropdown problems

This commit is contained in:
secretr
2008-09-15 16:20:27 +00:00
parent a77df1a354
commit fad582f267

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $
| $Revision: 1.16 $ | $Revision: 1.17 $
| $Date: 2008-07-25 19:26:32 $ | $Date: 2008-09-15 16:20:27 $
| $Author: e107steved $ | $Author: secretr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -242,12 +242,12 @@ class user_class
} }
else else
{ {
$s = ($curval == $k) ? "selected='selected'" : ""; $s = ($curval == $k && $curval !== '') ? "selected='selected'" : "";
$text .= "<option value='".$k."' ".$s.">".$v."</option>\n"; $text .= "<option value='".$k."' ".$s.">".$v."</option>\n";
} }
} }
if (isset($opt_arr['language']) && $pref['multilanguage']) if (strpos($optlist, "language") !== FALSE && $pref['multilanguage'])
{ {
$text .= "<optgroup label=' ------ ' />\n"; $text .= "<optgroup label=' ------ ' />\n";
$tmpl = explode(",",e_LANLIST); $tmpl = explode(",",e_LANLIST);