1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-20 05:11:25 +02:00

Respect 'whole result' even if some rows are checked (bug #339)

This commit is contained in:
Jakub Vrana
2013-12-20 17:07:46 -08:00
parent 64af68a30b
commit 650f61cac1
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ if ($_GET["val"] && is_ajax()) {
if ($_POST && !$error) {
$where_check = $where;
if (is_array($_POST["check"])) {
if (!$_POST["all"] && is_array($_POST["check"])) {
$where_check[] = "((" . implode(") OR (", array_map('where_check', $_POST["check"])) . "))";
}
$where_check = ($where_check ? "\nWHERE " . implode(" AND ", $where_check) : "");