Skip to content

Commit

Permalink
Fix #11326 Exported schema includes all the tables of the database
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jul 28, 2015
1 parent 4c124ce commit 7c1c639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion libraries/plugins/schema/Export_Relation_Schema.class.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c1c639

Please sign in to comment.