bug #1544779, undefined variable on db copy

This commit is contained in:
Marc Delisle
2006-08-26 13:41:29 +00:00
parent 1b77a0c4d9
commit 4eae69b250
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-08-26 Marc Delisle <lem9@users.sourceforge.net>
* db_operations.php: bug #1544799, undefined variable on db copy
2006-08-24 Michal Čihař <michal@cihar.com>
* Documentation.html, libraries/config.default.php,
libraries/auth/signon.auth.lib.php, scripts/signon.php,

View File

@@ -35,6 +35,7 @@ if (isset($db) &&
if (!isset($newname) || !strlen($newname)) {
$message = $strDatabaseEmpty;
} else {
$sql_query = ''; // in case target db exists
if ($move ||
(isset($create_database_before_copying) && $create_database_before_copying)) {
$local_query = 'CREATE DATABASE ' . PMA_backquote($newname);