From 0869ff02c6196899935cc768fddfbdf6be0c0b9e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 28 May 2013 11:23:48 -0700 Subject: [PATCH] Stricter check --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c6eef856..11552517 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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 {