1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

remove versioning code for outdated mysql version

This commit is contained in:
Lorenzo Yario 2024-04-07 06:12:35 -07:00 committed by GitHub
parent 4551b47421
commit a817a8c57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,10 +78,8 @@ function sql_open() {
if ($config['debug'])
$debug['time']['db_connect'] = '~' . round((microtime(true) - $start) * 1000, 2) . 'ms';
if (mysql_version() >= 50503)
query('SET NAMES utf8mb4') or error(db_error());
else
query('SET NAMES utf8') or error(db_error());
query('SET NAMES utf8mb4') or error(db_error());
return $pdo;
} catch(PDOException $e) {
$message = $e->getMessage();