From 101fd962000904bbf2c54a56e08f5b1853c47ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 1 Nov 2010 14:41:40 +0100 Subject: [PATCH] Fix error handling when no tables are found. --- libraries/schema/Export_Relation_Schema.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/schema/Export_Relation_Schema.class.php b/libraries/schema/Export_Relation_Schema.class.php index 78f11dd30..541574f62 100644 --- a/libraries/schema/Export_Relation_Schema.class.php +++ b/libraries/schema/Export_Relation_Schema.class.php @@ -103,7 +103,7 @@ class PMA_Export_Relation_Schema public function setShowKeys($value) { $this->showKeys = (isset($value) && $value == 'on') ? 1 : 0; - } + } /** * Set Orientation @@ -154,7 +154,7 @@ class PMA_Export_Relation_Schema } /** - * get all tables involved or included in page + * get all tables involved or included in page * * @param string db name of the database * @param integer pageNumber page number whose tables will be fetched in an array @@ -171,7 +171,7 @@ class PMA_Export_Relation_Schema $tab_rs = PMA_query_as_controluser($tab_sql, null, PMA_DBI_QUERY_STORE); 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)) { $alltables[] = PMA_sqlAddslashes($curr_table['table_name']);