]> git.joonet.de Git - adminer.git/commitdiff
Stay on import page when switching database
authorJakub Vrana <jakub@vrana.cz>
Fri, 9 Mar 2018 17:08:56 +0000 (18:08 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 9 Mar 2018 17:19:14 +0000 (18:19 +0100)
adminer/include/adminer.inc.php

index 896e2ddc9e6d375e6639baef0404c505b1973f91..c7ad4f70089dff15f6f8f48d275547dc53da4678 100644 (file)
@@ -1020,11 +1020,12 @@ bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '
                                }
                        }
                }
-               echo (isset($_GET["sql"]) ? '<input type="hidden" name="sql" value="">'
+               echo (isset($_GET["import"]) ? '<input type="hidden" name="import" value="">'
+                       : (isset($_GET["sql"]) ? '<input type="hidden" name="sql" value="">'
                        : (isset($_GET["schema"]) ? '<input type="hidden" name="schema" value="">'
                        : (isset($_GET["dump"]) ? '<input type="hidden" name="dump" value="">'
                        : (isset($_GET["privileges"]) ? '<input type="hidden" name="privileges" value="">'
-               : ""))));
+               : "")))));
                echo "</p></form>\n";
        }