Ignore NULL charset

This commit is contained in:
Michal Čihař
2011-03-18 15:29:18 +01:00
parent 724f11f20d
commit 186426cbaf

View File

@@ -908,13 +908,13 @@ $import_notice = NULL;
*/ */
function PMA_buildSQL($db_name, &$tables, &$analyses = NULL, &$additional_sql = NULL, $options = NULL) { function PMA_buildSQL($db_name, &$tables, &$analyses = NULL, &$additional_sql = NULL, $options = NULL) {
/* Take care of the options */ /* Take care of the options */
if (isset($options['db_collation'])) { if (isset($options['db_collation'])&& ! is_null($options['db_collation'])) {
$collation = $options['db_collation']; $collation = $options['db_collation'];
} else { } else {
$collation = "utf8_general_ci"; $collation = "utf8_general_ci";
} }
if (isset($options['db_charset'])) { if (isset($options['db_charset']) && ! is_null($options['db_charset'])) {
$charset = $options['db_charset']; $charset = $options['db_charset'];
} else { } else {
$charset = "utf8"; $charset = "utf8";