diff options
author | INOPIAE <inopiae@cacert.org> | 2013-09-16 21:19:19 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2013-09-17 00:12:59 +0200 |
commit | 162133bcc3a12fcaaba2992910ae75ab69bfe954 (patch) | |
tree | 79cd4d5f5e197bd2c64a58d0a2eb17e640098115 | |
parent | 5e641146728558d612bec23518a2b5a447277ba5 (diff) | |
download | cacert-devel-162133bcc3a12fcaaba2992910ae75ab69bfe954.tar.gz cacert-devel-162133bcc3a12fcaaba2992910ae75ab69bfe954.tar.xz cacert-devel-162133bcc3a12fcaaba2992910ae75ab69bfe954.zip |
bug 988: corrected function create_selectbox_HTML
-rw-r--r-- | includes/notary.inc.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php index 7869ae8..fb6056e 100644 --- a/includes/notary.inc.php +++ b/includes/notary.inc.php @@ -1143,20 +1143,20 @@ * entry is preselected in the dropdownbox * @return */ - function create_selectbox_HTML($name, array $options, $firstline = "", $value='', $selected = ""){ + function create_selectbox_HTML($name, array $options, $firstline = '', $value='', $selected = ''){ $return_str='<select name="' . $name . '">'; - if (!$firstline) { + if (''!= $firstline) { $return_str .= '<option>' . $firstline .'</option>'; } foreach ($options as $key => $avalue) { - $return_str.='<option '; - if (true==$value) { - $return_str.='value="'.$avalue.'" '; + $return_str.='<option'; + if ($value) { + $return_str.=' value="'.$avalue.'"'; } - if ($ttpcountry==$selection){ - $return_str.='selected="selected"'; + if ($key==$selected){ + $return_str.=' selected="selected"'; } - $return_str.=' >'.$key.'</option>'; + $return_str.='>'.$key.'</option>'; } $return_str.='</select>'; return $return_str; |