Skip to content

Commit

Permalink
A table has been dropped from outside phpMyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Sep 29, 2011
1 parent 37dff12 commit 789ed0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libraries/schema/User_Schema.class.php
Expand Up @@ -491,10 +491,12 @@ private function _displayScratchboardTables($array_sh_page)
$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 '<div id="table_' . $i . '" class="pdflayout_table"><u>' . $temp_sh_page['table_name'] . '</u>';
if (isset($with_field_names)) {
while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
Expand Down

0 comments on commit 789ed0d

Please sign in to comment.