Permalink
Browse files

$_POST[check] may be empty

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@843 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 08dc4b6 commit 56948c9346e8c1ae53e7e10e426b4b44c11964df jakubvrana committed Jul 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/select.inc.php
View
@@ -85,7 +85,7 @@
$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"], "");

0 comments on commit 56948c9

Please sign in to comment.