Browse Source

Bypass broken mysql version check

pull/40/head
discomrade 3 years ago
parent
commit
03bf2be728
  1. 11
      inc/database.php

11
inc/database.php

@ -99,15 +99,10 @@ function sql_open() {
} }
} }
// 5.6.10 becomes 50610 // 5.6.10 becomes 50610 HACK: hardcoded to be above critical value 50803 due to laziness
function mysql_version() { function mysql_version() {
global $pdo; // TODO delete all references of this function everywhere
return 80504;
$version = $pdo->getAttribute(PDO::ATTR_SERVER_VERSION);
$v = explode('.', $version);
if (count($v) != 3)
return false;
return (int) sprintf("%02d%02d%02d", $v[0], $v[1], $v[2]);
} }
function prepare($query) { function prepare($query) {

Loading…
Cancel
Save