Fix error handling when no tables are found.
This commit is contained in:
@@ -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']);
|
||||||
|
Reference in New Issue
Block a user