diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index 2bbcd3ebe..35a0d1ec1 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -85,9 +85,9 @@ class DBMysql extends DB return; } // Error appears if the version is lower than 4.1 - if(mysql_get_server_info($result) < "4.1") + if(version_compare(mysql_get_server_info($result), '4.1', '<')) { - $this->setError(-1, "XE cannot be installed under the version of mysql 4.1. Current mysql version is " . mysql_get_server_info()); + $this->setError(-1, 'XE cannot be installed under the version of mysql 4.1. Current mysql version is ' . mysql_get_server_info()); return; } // select db