diff --git a/modules/Install/models/Utils.php b/modules/Install/models/Utils.php index 433a46844bb9b558635d3bd3978f9c03f13ccf92..a370bc7e76c97ab05cd8cf90e465e6e4e3d28ec8 100644 --- a/modules/Install/models/Utils.php +++ b/modules/Install/models/Utils.php @@ -437,7 +437,7 @@ class Install_Utils_Model { $error_msg_info = getTranslatedString('MSG_LIST_REASONS', 'Install').':<br> - '.getTranslatedString('MSG_DB_PARAMETERS_INVALID', 'Install').' - '.getTranslatedString('MSG_DB_USER_NOT_AUTHORIZED', 'Install'); - } elseif(self::isMySQL($db_type) && $mysql_server_version < 4.1) { + } elseif(self::isMySQL($db_type) && version_compare($mysql_server_version,4.1,'<')) { $error_msg = $mysql_server_version.' -> '.getTranslatedString('ERR_INVALID_MYSQL_VERSION', 'Install'); } elseif(!$db_sqlmode_support) { $error_msg = getTranslatedString('ERR_DB_SQLMODE_NOTFRIENDLY', 'Install');