diff --git a/sql.php3 b/sql.php3 index 68a93711f..b5749b809 100755 --- a/sql.php3 +++ b/sql.php3 @@ -564,7 +564,8 @@ else { // Export link, if only one table // (the url_query has extra parameters that won't be used to export) - if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) + if (!isset($printview) + && isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) && !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) { echo ' ' . "\n" . ' ' . $strExport . '' . "\n";