avoid the notice (introduced in revision 12119) when creating a table

This commit is contained in:
Marc Delisle
2008-12-14 13:09:39 +00:00
parent e590434056
commit c6bd88d51a

View File

@@ -275,6 +275,11 @@ class PMA_Table
PMA_DBI_get_tables_full($db, $table); PMA_DBI_get_tables_full($db, $table);
} }
if (! isset(PMA_Table::$cache[$db][$table])) {
// happens when we enter the table creation dialog
return array();
}
if (null === $info) { if (null === $info) {
return PMA_Table::$cache[$db][$table]; return PMA_Table::$cache[$db][$table];
} }