undefined variable if AllowAnywhereRecoding is false
This commit is contained in:
@@ -162,7 +162,8 @@ function PMA_exportFooter()
|
||||
}
|
||||
|
||||
// restore connection settings
|
||||
$charset_of_file = $GLOBALS['charset_of_file'];
|
||||
// (not set if $cfg['AllowAnywhereRecoding'] is false)
|
||||
$charset_of_file = isset($GLOBALS['charset_of_file']) ? $GLOBALS['charset_of_file'] : '';
|
||||
if (!empty($GLOBALS['asfile']) && isset($mysql_charset_map[$charset_of_file])) {
|
||||
$foot .= $crlf
|
||||
. '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;' . $crlf
|
||||
@@ -226,7 +227,7 @@ function PMA_exportHeader()
|
||||
|
||||
$head .= $crlf;
|
||||
|
||||
$charset_of_file = $GLOBALS['charset_of_file'];
|
||||
$charset_of_file = isset($GLOBALS['charset_of_file']) ? $GLOBALS['charset_of_file'] : '';
|
||||
if (!empty($GLOBALS['asfile']) && isset($mysql_charset_map[$charset_of_file])) {
|
||||
$head .= $crlf
|
||||
. '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;' . $crlf
|
||||
@@ -239,7 +240,7 @@ function PMA_exportHeader()
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs create database database
|
||||
* Outputs CREATE DATABASE database
|
||||
*
|
||||
* @param string Database name
|
||||
*
|
||||
|
Reference in New Issue
Block a user