From f73a98e42176e1c463afd1d1c573892d3d1f7959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 6 Feb 2017 13:31:39 +0100 Subject: [PATCH] Fixed database renaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #12955 Signed-off-by: Michal Čihař --- ChangeLog | 1 + db_operations.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 175333438e..a1ebad5f65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -55,6 +55,7 @@ phpMyAdmin - ChangeLog - issue #12941 Fixed sorting of tables in relation view - issue #12936 Fixed tables pagination in navigation panel - issue #12904 Do not collapse add form for central columns if there are none +- issue #12955 Fixed database renaming 4.6.6 (2017-01-23) - issue #12759 Fix Notice regarding 'Undefined index: old_usergroup' diff --git a/db_operations.php b/db_operations.php index 9f884f0474..a934fc43aa 100644 --- a/db_operations.php +++ b/db_operations.php @@ -37,7 +37,7 @@ $sql_query = ''; /** * Rename/move or copy database */ -if (strlen($GLOBALS['db'] > 0) +if (strlen($GLOBALS['db']) > 0 && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_copy'])) ) { if (! empty($_REQUEST['db_rename'])) {