]> git.joonet.de Git - adminer.git/commitdiff
$_POST[check] may be empty
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 16 Jul 2009 14:07:14 +0000 (14:07 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 16 Jul 2009 14:07:14 +0000 (14:07 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@843 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/select.inc.php

index 93a1196a085f04aeb343c310d90b5e975c310a94..9929edfbe43da33c0272c22ae6f7c24a079522bc 100644 (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"], "");