Bug #3153832 - Untracked tables display problem with LeftFrameTableSeparator
This commit is contained in:
@@ -149,15 +149,31 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
|
||||||
|
|
||||||
// Get list of tables
|
// Get list of tables
|
||||||
$table_list = PMA_getTableList($GLOBALS['db']);
|
$table_list = PMA_getTableList($GLOBALS['db']);
|
||||||
|
|
||||||
// For each table try to get the tracking version
|
// For each table try to get the tracking version
|
||||||
foreach ($table_list as $key => $value) {
|
foreach ($table_list as $key => $value) {
|
||||||
|
// If $value is a table group.
|
||||||
|
if (array_key_exists(('is' . $sep . 'group'), $value) && $value['is' . $sep . 'group']) {
|
||||||
|
foreach ($value as $temp_table) {
|
||||||
|
// If $temp_table is a table with the value for 'Name' is set,
|
||||||
|
// rather than a propery of the table group.
|
||||||
|
if (array_key_exists('Name', $temp_table)) {
|
||||||
|
if (PMA_Tracker::getVersion($GLOBALS['db'], $temp_table['Name']) == -1) {
|
||||||
|
$my_tables[] = $temp_table['Name'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// If $value is a table.
|
||||||
|
} else {
|
||||||
if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) {
|
if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) {
|
||||||
$my_tables[] = $value['Name'];
|
$my_tables[] = $value['Name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If untracked tables exist
|
// If untracked tables exist
|
||||||
if (isset($my_tables)) {
|
if (isset($my_tables)) {
|
||||||
|
Reference in New Issue
Block a user