diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php
index ae0a629e7d..29b1bf362f 100644
--- a/libraries/schema/User_Schema.class.php
+++ b/libraries/schema/User_Schema.class.php
@@ -526,8 +526,12 @@ class PMA_User_Schema
echo '
' . $temp_sh_page['table_name'] . '';
if (isset($with_field_names)) {
$fields = PMA_DBI_get_columns($db, $temp_sh_page['table_name']);
- foreach ($fields as $row) {
- echo '
' . htmlspecialchars($row['Field']) . "\n";
+ // if the table has been dropped from outside phpMyAdmin,
+ // we can no longer obtain its columns list
+ if ($fields) {
+ foreach ($fields as $row) {
+ echo '
' . htmlspecialchars($row['Field']) . "\n";
+ }
}
}
echo '
' . "\n";