Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2011-02-06 07:44:48 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2011-02-06 07:44:48 +0300
commit5272fd6dab525808958feaf5a275addc23b7dda7 (patch)
tree6b5c040320e817b632e7ec873e69ed5d40f2e9bd /db_tracking.php
parent98df129296c83ebe51e7c484c7d57ee31f19e115 (diff)
Bug #3153832 - Untracked tables display problem with LeftFrameTableSeparator
Diffstat (limited to 'db_tracking.php')
-rw-r--r--db_tracking.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/db_tracking.php b/db_tracking.php
index d9a7da35ab..dbd5c5f4b1 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -31,7 +31,7 @@ if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) {
PMA_Tracker::deleteTracking($GLOBALS['db'], $_REQUEST['table']);
/**
- * If in an Ajax request, generate the success message and use
+ * If in an Ajax request, generate the success message and use
* {@link PMA_ajaxResponse()} to send the output
*/
if($GLOBALS['is_ajax_request'] == true) {
@@ -149,13 +149,29 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
<?php
}
+$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
+
// Get list of tables
$table_list = PMA_getTableList($GLOBALS['db']);
// For each table try to get the tracking version
foreach ($table_list as $key => $value) {
- if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) {
- $my_tables[] = $value['Name'];
+ // 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) {
+ $my_tables[] = $value['Name'];
+ }
}
}