summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/notary.inc.php16
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;