diff --git a/adminer/db.inc.php b/adminer/db.inc.php index bcc98999..7e095e1e 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -115,8 +115,8 @@ if ($adminer->homepage()) { echo "
" . lang('Selected') . "
" . (ereg('^(sql|sqlite|pgsql)$', $jush) ? ($jush != "sqlite" ? " " : "") . " " : "") . ($jush == "sql" ? " " : "") - . (support("table") ? " " : "") - . "\n"; + . (support("table") ? " " : "") + . "\n"; $databases = (support("scheme") ? schemas() : $adminer->databases()); if (count($databases) != 1 && $jush != "sqlite") { $db = (isset($_POST["target"]) ? $_POST["target"] : (support("scheme") ? $_GET["ns"] : DB)); diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php index 91ff9844..0046f3e8 100644 --- a/adminer/edit.inc.php +++ b/adminer/edit.inc.php @@ -168,7 +168,7 @@ if ($fields) { ) . "' title='Ctrl+Shift+Enter'>\n"; } } -echo ($update ? "\n" +echo ($update ? "\n" : ($_POST || !$fields ? "" : "\n") ); if (isset($_GET["select"])) { diff --git a/adminer/include/connect.inc.php b/adminer/include/connect.inc.php index 93eac11e..907900ee 100644 --- a/adminer/include/connect.inc.php +++ b/adminer/include/connect.inc.php @@ -47,7 +47,7 @@ function connect_error() { echo (support("database") ? "
" . lang('Selected') . "
\n" . "\n" // used by trCheck() - . "\n" + . "\n" . "
\n" : "" ); diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 491117b4..6077b056 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -164,11 +164,10 @@ function select_input($attrs, $options, $value = "", $placeholder = "") { } /** Get onclick confirmation -* @param string JavaScript expression * @return string */ -function confirm($count = "") { - return " onclick=\"return confirm('" . lang('Are you sure?') . ($count ? " (' + $count + ')" : "") . "');\""; +function confirm() { + return " onclick=\"return confirm('" . lang('Are you sure?') . "');\""; } /** Print header for hidden fieldset (close by
) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index d00edede..84d3635f 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -504,7 +504,7 @@ if (!$columns && support("table")) {
- +>