Fix error handling when no tables are found.

This commit is contained in:
Michal Čihař
2010-11-01 14:41:40 +01:00
parent 829e482ed1
commit 101fd96200

View File

@@ -171,7 +171,7 @@ class PMA_Export_Relation_Schema
$tab_rs = PMA_query_as_controluser($tab_sql, null, PMA_DBI_QUERY_STORE); $tab_rs = PMA_query_as_controluser($tab_sql, null, PMA_DBI_QUERY_STORE);
if (!$tab_rs || !PMA_DBI_num_rows($tab_rs) > 0) { if (!$tab_rs || !PMA_DBI_num_rows($tab_rs) > 0) {
$this->_die('',__('No tables')); $this->dieSchema('',__('No tables'));
} }
while ($curr_table = @PMA_DBI_fetch_assoc($tab_rs)) { while ($curr_table = @PMA_DBI_fetch_assoc($tab_rs)) {
$alltables[] = PMA_sqlAddslashes($curr_table['table_name']); $alltables[] = PMA_sqlAddslashes($curr_table['table_name']);