From c6bd88d51a5372b16da2b56f9f72f36f6d3208c8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 14 Dec 2008 13:09:39 +0000 Subject: [PATCH] avoid the notice (introduced in revision 12119) when creating a table --- libraries/Table.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/Table.class.php b/libraries/Table.class.php index 0ea558363..86063f233 100644 --- a/libraries/Table.class.php +++ b/libraries/Table.class.php @@ -275,6 +275,11 @@ class PMA_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) { return PMA_Table::$cache[$db][$table]; }