From 7c1c639ef46914c737f2e8e9cef695a2c3723567 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 28 Jul 2015 08:11:38 +0530 Subject: [PATCH] Fix #11326 Exported schema includes all the tables of the database Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + libraries/plugins/schema/Export_Relation_Schema.class.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e629132d77b7..da60262d3a8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog - bug Once checked "Show only active" checkbox is always checked - issue #1813 Delete rows using "Check All" is broken - Fix PHP 7 possible binding ambiguity +- issue #11326 Exported schema includes all the tables of the database 4.4.12.0 (2015-07-20) - bug Saved chart image does not have a proper name or an extension diff --git a/libraries/plugins/schema/Export_Relation_Schema.class.php b/libraries/plugins/schema/Export_Relation_Schema.class.php index fc142290cf4d..d3618f0568f2 100644 --- a/libraries/plugins/schema/Export_Relation_Schema.class.php +++ b/libraries/plugins/schema/Export_Relation_Schema.class.php @@ -242,7 +242,9 @@ protected function getTablesFromRequest() $tables = array(); $dbLength = mb_strlen($GLOBALS['db']); foreach ($_REQUEST['t_h'] as $key => $value) { - $tables[] = mb_substr($key, $dbLength + 1); + if ($value) { + $tables[] = mb_substr($key, $dbLength + 1); + } } return $tables; }