Changed the version check to compare against the string rather than the number.

This commit is contained in:
skeeter 2002-04-07 19:58:57 +00:00
parent cf031d14bc
commit 301b5268d3

View File

@ -353,7 +353,7 @@
);
/* Try to fix this unfortunate case for mysql 3.22.X in php4 at least */
if(phpversion() >= 4.0.5 && @$GLOBALS['phpgw_setup']->db->Type == 'mysql')
if(phpversion() >= '4.0.5' && @$GLOBALS['phpgw_setup']->db->Type == 'mysql')
{
$_ver_str = @mysql_get_server_info();
$_ver_arr = explode(".",$_ver_str);