From 17e5f02f36de79ba4a5648fa4e123b07d13cece0 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 26 Aug 2006 13:38:42 +0000 Subject: [PATCH] bug #1544779, undefined variable on db copy --- ChangeLog | 3 +++ db_operations.php | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index c46ef4519..d5569cd00 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-08-26 Marc Delisle + * db_operations.php: bug #1544799, undefined variable on db copy + 2006-08-24 Marc Delisle ### 2.9.0-beta1 released from QA_2_9 diff --git a/db_operations.php b/db_operations.php index 533c30cd7..510ba6368 100644 --- a/db_operations.php +++ b/db_operations.php @@ -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);