From befdc7103885aae15b75bfb9bb488a9531f10250 Mon Sep 17 00:00:00 2001 From: ceb Date: Fri, 5 Apr 2002 20:37:27 +0000 Subject: [PATCH] fixed wrong php version check. function mysql_get_server_info() was added in 4.0.5. the installation of phpgw fails with php versions 4.0.0 - 4.0.4. because of the @ in front of that function call the install is frozen. it doesnt return a message and also doesnt continue in any way --- phpgwapi/setup/tables_current.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index ad23652f02..3cb52b08c5 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -353,7 +353,7 @@ ); /* Try to fix this unfortunate case 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);