From 789ed0d3d122f2165365cb5285b52c9885e6bffe Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 29 Sep 2011 06:08:30 -0400 Subject: [PATCH] A table has been dropped from outside phpMyAdmin --- libraries/schema/User_Schema.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index cb42dde2c..17c2d391c 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -491,10 +491,12 @@ class PMA_User_Schema $local_query = 'SHOW FIELDS FROM ' . PMA_backquote($temp_sh_page['table_name']) . ' FROM ' . PMA_backquote($db); - $fields_rs = PMA_DBI_query($local_query); + $fields_rs = PMA_DBI_try_query($local_query); unset($local_query); - $fields_cnt = PMA_DBI_num_rows($fields_rs); - + // the table has been dropped from outside phpMyAdmin + if (PMA_DBI_getError()) { + continue; + } echo '
' . $temp_sh_page['table_name'] . ''; if (isset($with_field_names)) { while ($row = PMA_DBI_fetch_assoc($fields_rs)) {