diff --git a/db_datadict.php b/db_datadict.php index 10fff3805..69cd5d0cc 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -31,7 +31,7 @@ PMA_checkParameters(array('db')); /** * Defines the url to return to in case of error in a sql statement */ -if (isset($table)) { +if (strlen($table)) { $err_url = 'tbl_sql.php?' . PMA_generate_common_url($db, $table); } else { $err_url = 'db_sql.php?' . PMA_generate_common_url($db); diff --git a/db_operations.php b/db_operations.php index 4d697bff4..a8fc2d99d 100644 --- a/db_operations.php +++ b/db_operations.php @@ -22,7 +22,7 @@ require_once './libraries/mysql_charsets.lib.php'; /** * Rename/move or copy database */ -if (isset($db) && +if (strlen($db) && ((isset($db_rename) && $db_rename == 'true') || (isset($db_copy) && $db_copy == 'true'))) { @@ -340,7 +340,7 @@ if (!$is_information_schema) { // MySQL supports setting default charsets / collations for databases since // version 4.1.1. echo '