diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php
index c36bfdcf..0ae8f52f 100644
--- a/adminer/dump.inc.php
+++ b/adminer/dump.inc.php
@@ -170,7 +170,7 @@ if (strlen(DB)) {
echo "\n";
$views = "";
foreach (table_status() as $row) {
- $checked = (strlen($TABLE) && $row["Name"] != $TABLE);
+ $checked = !strlen($TABLE) || $row["Name"] == $TABLE;
$print = "
" . checkbox("tables[]", $row["Name"], $checked, $row["Name"], "form_uncheck('check-tables');");
if (!$row["Engine"]) {
$views .= "$print\n";
diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php
index 14eef590..516b6364 100644
--- a/adminer/include/functions.inc.php
+++ b/adminer/include/functions.inc.php
@@ -68,8 +68,10 @@ function nbsp($string) {
* @return string
*/
function checkbox($name, $value, $checked, $label = "", $onclick = "") {
- $return = "";
- return (strlen($label) ? "" : $return);
+ static $id = 0;
+ $id++;
+ $return = "";
+ return (strlen($label) ? "" : $return);
}
/** Generate list of HTML options
diff --git a/todo.txt b/todo.txt
index b5099835..8b37111d 100644
--- a/todo.txt
+++ b/todo.txt
@@ -7,7 +7,6 @@ Create view and routine options
Function to fix database encoding - http://php.vrana.cz/prevod-kodovani-mysql.php
Highlight SQL textarea - may use external CodePress
Mass editation of individual rows
-IE6 - |