From: Joe Date: Fri, 24 Feb 2023 08:40:59 +0000 (+0100) Subject: PHP 8.1 onwards db_set_charset needs second parameter not null. Fixed with defaykt... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=4d6fed545c2ebd233a4204da10c502c46a24e734 PHP 8.1 onwards db_set_charset needs second parameter not null. Fixed with defaykt utf8. --- diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index ba4d0892..366226c9 100644 --- a/admin/db/maintenance_db.inc +++ b/admin/db/maintenance_db.inc @@ -383,7 +383,7 @@ function db_import($filename, $connection, $force=true, $init=true, $protect=fal // 'set names' or equivalents should be used only on post 2.3 FA versions // otherwise text encoding can be broken during import // - $encoding = null; // UI encoding for default site language is the default + $encoding = 'utf8'; // UI encoding for default site language is the default $new_db = $init || db_fixed(); $new_file = count($set_names); if ($new_db)