Fix issue when resetting charset in import.php

Related to 3b6a994dcd

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-04-18 01:15:50 -03:00
parent 460351c53f
commit 990b9c019c
2 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ phpMyAdmin - ChangeLog
- issue #13713 Fixed column comments in the floating table header
- issue #15177 Fixed label alignment on login page
- issue #15210 Fixed a typo in the english name of the Albanian language
- issue Fixed issue when resetting charset in import.php
4.8.5 (2019-01-25)
- issue Developer debug data was saved to the PHP error log

View File

@ -572,7 +572,7 @@ if ($file_to_unlink != '') {
// Reset charset back, if we did some changes
if ($reset_charset) {
$GLOBALS['dbi']->query('SET CHARACTER SET ' . $GLOBALS['charset_connection']);
$GLOBALS['dbi']->setCollationConnection($collation_connection);
$GLOBALS['dbi']->setCollation($collation_connection);
}
// Show correct message