More HTML swapped and admin contact link rewritten. Resolves #91
[mailer.git] / inc / mysql-manager.php
index 98c45fe686e0b13b182ae9b1981886483f1e7850..fa65d85ae598da387404e4f4180840e797719d96 100644 (file)
@@ -1337,8 +1337,7 @@ function GET_CURRENT_ADMIN_ID () {
 }
 
 // Get password hash from administrator's login name
-function GET_ADMIN_HASH ($aid)
-{
+function GET_ADMIN_HASH ($aid) {
        global $cacheArray;
        $ret = "-1";
        if (isset($cacheArray['admins']['password'][$aid])) {
@@ -1460,7 +1459,7 @@ function ADD_OPTION_LINES ($table, $id, $name, $default="", $special="", $where=
                        // Both are arrays
                        foreach ($id as $idx => $value) {
                                $ret .= "<option value=\"".$value."\"";
-                               if ($default == $value) $ret .= " selected checked";
+                               if ($default == $value) $ret .= " selected=\"selected\"";
                                $ret .= ">".$name[$idx]."</option>\n";
                        } // END - foreach
                } // END - if
@@ -1477,7 +1476,7 @@ function ADD_OPTION_LINES ($table, $id, $name, $default="", $special="", $where=
                        while (list($value, $title, $add) = SQL_FETCHROW($result)) {
                                if (empty($special)) $add = "";
                                $ret .= "<option value=\"".$value."\"";
-                               if ($default == $value) $ret .= " selected checked";
+                               if ($default == $value) $ret .= " selected=\"selected\"";
                                if (!empty($add)) $add = " (".$add.")";
                                $ret .= ">".$title.$add."</option>\n";
                        } // END - while