mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
fix mysql_version() for mariadb
This commit is contained in:
parent
d6ea8db5ef
commit
9e63116338
@ -103,7 +103,7 @@ function mysql_version() {
|
|||||||
$v = explode('.', $version);
|
$v = explode('.', $version);
|
||||||
if (count($v) != 3)
|
if (count($v) != 3)
|
||||||
return false;
|
return false;
|
||||||
return (int) sprintf("%02d%02d%02d", $v[0], $v[1], $v[2]);
|
return (int) sprintf("%02d%02d%02d", $v[0], $v[1], is_int($v[2]) ? (int)$v[2] : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare($query) {
|
function prepare($query) {
|
||||||
|
Loading…
Reference in New Issue
Block a user