]> git.joonet.de Git - adminer.git/commitdiff
Files can be disabled
authorJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 22:58:45 +0000 (00:58 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 22:58:45 +0000 (00:58 +0200)
adminer/sql.inc.php

index 69f9a1d965411d416459590c4f16148e24a72dd9..c4f745749bab4ebed96f5b155cf6c3f7a7bce858 100644 (file)
@@ -18,7 +18,7 @@ if (!$error && $_POST) {
                        : "compress.bzip2://adminer.sql.bz2"
                )), "rb");
                $query = ($fp ? fread($fp, 1e6) : false);
-       } elseif ($_FILES["sql_file"]["error"] != 4) { // 4 - UPLOAD_ERR_NO_FILE
+       } elseif ($_FILES && $_FILES["sql_file"]["error"] != 4) { // 4 - UPLOAD_ERR_NO_FILE
                $query = get_file("sql_file", true);
        }
        if (is_string($query)) { // get_file() returns error as number, fread() as false