Avoid warnings in tracking page

This commit is contained in:
Madhura Jayaratne
2012-01-25 23:09:16 +05:30
parent badc93d5d4
commit 426a7e3733

View File

@@ -161,7 +161,7 @@ foreach ($table_list as $key => $value) {
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 (is_array($temp_table) && array_key_exists('Name', $temp_table)) {
if (PMA_Tracker::getVersion($GLOBALS['db'], $temp_table['Name']) == -1) {
$my_tables[] = $temp_table['Name'];
}