]> git.joonet.de Git - adminer.git/commitdiff
Don't hide import if there was an error
authorJakub Vrana <jakub@vrana.cz>
Wed, 26 Feb 2025 21:28:01 +0000 (22:28 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 26 Feb 2025 21:28:01 +0000 (22:28 +0100)
adminer/select.inc.php

index 288924ff1bd545af2fb05056e3fafa54afc52648..59dda2348ce8e84c156c128081089987e352d384 100644 (file)
@@ -569,7 +569,7 @@ if (!$columns && support("table")) {
                                echo "<div>";
                                echo "<a href='#import'>" . lang('Import') . "</a>";
                                echo script("qsl('a').onclick = partial(toggle, 'import');", "");
-                               echo "<span id='import' class='hidden'>: ";
+                               echo "<span id='import'" . ($_POST["import"] ? "" : " class='hidden'") . ">: ";
                                echo "<input type='file' name='csv_file'> ";
                                echo html_select("separator", array("csv" => "CSV,", "csv;" => "CSV;", "tsv" => "TSV"), $adminer_import["format"], 1); // 1 - select
                                echo " <input type='submit' name='import' value='" . lang('Import') . "'>";