]> git.joonet.de Git - adminer.git/commitdiff
Property num_rows can be empty
authorJakub Vrana <jakub@vrana.cz>
Tue, 3 Aug 2010 15:25:51 +0000 (17:25 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 3 Aug 2010 15:25:51 +0000 (17:25 +0200)
adminer/select.inc.php

index 8b76c3b0bdf8027a5f90621fc0d1fb1866cbeb8e..e2f332be8452aa55aa20b2b9c7788415b5157955 100644 (file)
@@ -392,7 +392,7 @@ if (!$columns) {
                        echo " <input type='submit' name='export' value='" . lang('Export') . "'>\n";
                        echo "</div></fieldset>\n";
                }
-               print_fieldset("import", lang('CSV Import'), !$result->num_rows);
+               print_fieldset("import", lang('CSV Import'), !$rows);
                echo "<input type='hidden' name='token' value='$token'><input type='file' name='csv_file'> ";
                echo html_select("separator", array("csv" => "CSV,", "csv;" => "CSV;"), $adminer_export["format"], 1); // 1 - select
                echo " <input type='submit' name='import' value='" . lang('Import') . "'>\n";