$_POST[check] may be empty

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@843 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-07-16 14:07:14 +00:00
parent 08dc4b654e
commit 56948c9346

View file

@ -85,7 +85,7 @@ $from = ($select ? implode(", ", $select) : "*") . " FROM " . idf_escape($_GET["
$group_by = ($group && count($group) < count($select) ? " GROUP BY " . implode(", ", $group) : "") . ($order ? " ORDER BY " . implode(", ", $order) : "");
if ($_POST && !$error) {
$where_check = "(" . implode(") OR (", array_map('where_check', $_POST["check"])) . ")";
$where_check = "(" . implode(") OR (", array_map('where_check', (array) $_POST["check"])) . ")";
if ($_POST["export"]) {
dump_headers($_GET["select"]);
dump_table($_GET["select"], "");