fixed wrong mysql version check

This commit is contained in:
ceb 2002-04-25 20:35:41 +00:00
parent 6a06b9c235
commit 72aadf6ec0

View File

@ -365,7 +365,7 @@
function phpgwapi_upgrade0_9_13_015()
{
/* Skip this for mysql 3.22.X in php4 at least */
if(floor(phpversion()) == 4 && @$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);