Skip to content

Commit

Permalink
Merge pull request #1694 from devenbansod/657C
Browse files Browse the repository at this point in the history
RFE#657 Correction : Reselect Original DB after Renaming Table
  • Loading branch information
ibennetch committed May 26, 2015
2 parents c9b3142 + 8644eca commit 5f1d65f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tbl_operations.php
Expand Up @@ -122,6 +122,10 @@
);
}

// Reselect the original DB
$GLOBALS['db'] = $oldDb;
$GLOBALS['dbi']->selectDb($oldDb);

$_message .= $pma_table->getLastMessage();
$result = true;
$GLOBALS['table'] = $pma_table->getName();
Expand Down

0 comments on commit 5f1d65f

Please sign in to comment.