integrity check should allow utf8_* charachter sets and not only 'utf8', thx to lod
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -90,7 +90,7 @@ class IntegrityCheck
|
|||||||
'dbname' => Database::getDbName()
|
'dbname' => Database::getDbName()
|
||||||
));
|
));
|
||||||
$charset = isset($resp['default_character_set_name']) ? $resp['default_character_set_name'] : null;
|
$charset = isset($resp['default_character_set_name']) ? $resp['default_character_set_name'] : null;
|
||||||
if (! empty($charset) && strtolower($charset) != 'utf8') {
|
if (! empty($charset) && substr(strtolower($charset), 0, 4) != 'utf8') {
|
||||||
$this->log->logAction(\Froxlor\FroxlorLogger::ADM_ACTION, LOG_NOTICE, "database charset seems to be different from UTF-8, integrity-check can fix that");
|
$this->log->logAction(\Froxlor\FroxlorLogger::ADM_ACTION, LOG_NOTICE, "database charset seems to be different from UTF-8, integrity-check can fix that");
|
||||||
if ($fix) {
|
if ($fix) {
|
||||||
// fix database
|
// fix database
|
||||||
|
|||||||
Reference in New Issue
Block a user