bug #3042706 [pmadb] Relations, bookmarks, etc deleted after table drop

This commit is contained in:
Marc Delisle
2010-08-10 17:55:04 -04:00
parent 789d3a4131
commit dda6de20d2
4 changed files with 8 additions and 2 deletions

View File

@@ -459,6 +459,9 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) {
if (strlen($table) && strlen($db)) {
PMA_relationsCleanupTable($db, $table);
// this is to avoid counting rows for nothing, below
// (do not unset as $table is used further down in the logic)
$table = '';
} elseif (strlen($db)) {
PMA_relationsCleanupDatabase($db);
} else {