From 31dcdcc6ad6ce47c03265f3d6e499774a17ff727 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 30 Aug 2009 15:18:20 -0700 Subject: Remove unnecessary cleverness in stripping off the hyphen for mysql version checks that was causing problems in the case where there's no hyphen. version_compare handles hypens fine. --- installer/installer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'installer') diff --git a/installer/installer.php b/installer/installer.php index 58d264ec..50657d80 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -110,9 +110,7 @@ class installer { static function mysql_version($config) { $result = mysql_query("SHOW VARIABLES WHERE variable_name = \"version\""); - $row = mysql_fetch_object($result); - $version = substr($row->Value, 0, strpos($row->Value, "-")); - return $version; + return $row->Value; } static function db_empty($config) { -- cgit v1.2.3