]> git.joonet.de Git - adminer.git/commitdiff
Stricter check
authorJakub Vrana <jakub@vrana.cz>
Tue, 28 May 2013 18:23:48 +0000 (11:23 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 28 May 2013 18:23:48 +0000 (11:23 -0700)
adminer/select.inc.php

index c6eef8566b31fa68f8e4c6d99d281e5b189e3781..11552517c14ee4b67c1322a759169bc4e03a6e35 100644 (file)
@@ -111,7 +111,7 @@ if ($_POST && !$error) {
                                        $command = "INSERT";
                                        $query = "INTO $query";
                                }
-                               if ($_POST["all"] || ($unselected === array() && $_POST["check"]) || $is_group) {
+                               if ($_POST["all"] || ($unselected === array() && is_array($_POST["check"])) || $is_group) {
                                        $result = queries("$command $query$where_check");
                                        $affected = $connection->affected_rows;
                                } else {