diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index 8b76c3b0..e2f332be 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -392,7 +392,7 @@ if (!$columns) {
echo " \n";
echo "\n";
}
- print_fieldset("import", lang('CSV Import'), !$result->num_rows);
+ print_fieldset("import", lang('CSV Import'), !$rows);
echo " ";
echo html_select("separator", array("csv" => "CSV,", "csv;" => "CSV;"), $adminer_export["format"], 1); // 1 - select
echo " \n";