mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
Improve server environment display
This commit is contained in:
parent
954d2c7ec6
commit
4ee115e4f3
10 changed files with 186 additions and 210 deletions
|
|
@ -78,9 +78,10 @@ class DBMysql extends DB
|
|||
}
|
||||
|
||||
// Error appears if the version is lower than 5.0.7
|
||||
if(version_compare(mysql_get_server_info($result), '5.0.7', '<'))
|
||||
$this->db_version = mysql_get_server_info($result);
|
||||
if(version_compare($this->db_version, '5.0.7', '<'))
|
||||
{
|
||||
$this->setError(-1, 'Rhymix requires MySQL 5.0.7 or later. Current MySQL version is ' . mysql_get_server_info());
|
||||
$this->setError(-1, 'Rhymix requires MySQL 5.0.7 or later. Current MySQL version is ' . $this->db_version);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue