]> git.joonet.de Git - adminer.git/commitdiff
Respect SQL command URL parameters
authorJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 18:09:54 +0000 (19:09 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 18:09:54 +0000 (19:09 +0100)
adminer/sql.inc.php

index 0192959ac52cf243bee4544837f3a3a94e29652d..7a21235de988c3c057eefafb9b9a1380d7302296 100644 (file)
@@ -244,8 +244,8 @@ if (!isset($_GET["import"])) {
        echo "<p>";
 }
 
-echo checkbox("error_stops", 1, ($_POST ? $_POST["error_stops"] : isset($_GET["import"])), lang('Stop on error')) . "\n";
-echo checkbox("only_errors", 1, ($_POST ? $_POST["only_errors"] : isset($_GET["import"])), lang('Show only errors')) . "\n";
+echo checkbox("error_stops", 1, ($_POST ? $_POST["error_stops"] : isset($_GET["import"]) || $_GET["error_stops"]), lang('Stop on error')) . "\n";
+echo checkbox("only_errors", 1, ($_POST ? $_POST["only_errors"] : isset($_GET["import"]) || $_GET["only_errors"]), lang('Show only errors')) . "\n";
 echo "<input type='hidden' name='token' value='$token'>\n";
 
 if (!isset($_GET["import"]) && $history) {