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:
authorMichal Čihař <michal@cihar.com>2014-05-08 13:59:50 +0400
committerMichal Čihař <michal@cihar.com>2014-05-08 13:59:50 +0400
commit9a88a68e1f4b2abacb6c54c1c7f0df67416c0483 (patch)
tree4c3ec48099317e30b28016abdbad92be5d0efa28 /db_tracking.php
parent1188d706e2eb55cb4a27ae54fd7b2e3e5b1fe44d (diff)
Define array before using it
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_tracking.php')
-rw-r--r--db_tracking.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/db_tracking.php b/db_tracking.php
index 98512651f7..e5fe7111d4 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -169,6 +169,8 @@ $sep = $GLOBALS['cfg']['NavigationTreeTableSeparator'];
// Get list of tables
$table_list = PMA_Util::getTableList($GLOBALS['db']);
+$my_tables = array();
+
// For each table try to get the tracking version
foreach ($table_list as $key => $value) {
// If $value is a table group.
@@ -198,7 +200,7 @@ foreach ($table_list as $key => $value) {
}
// If untracked tables exist
-if (isset($my_tables)) {
+if (count($my_tables) > 0) {
?>
<h3><?php echo __('Untracked tables');?></h3>