From 8644eca4915bda2451910c0724ec4228fdd20729 Mon Sep 17 00:00:00 2001 From: Deven Bansod Date: Tue, 26 May 2015 13:56:52 +0530 Subject: [PATCH] Reselect Original DB after Renaming Table Signed-off-by: Deven Bansod --- tbl_operations.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbl_operations.php b/tbl_operations.php index b80f4471c5..686df60abf 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -122,6 +122,10 @@ if (isset($_REQUEST['submitoptions'])) { ); } + // Reselect the original DB + $GLOBALS['db'] = $oldDb; + $GLOBALS['dbi']->selectDb($oldDb); + $_message .= $pma_table->getLastMessage(); $result = true; $GLOBALS['table'] = $pma_table->getName();