summaryrefslogtreecommitdiff
path: root/installer/installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-30 15:18:20 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-30 15:18:20 -0700
commit31dcdcc6ad6ce47c03265f3d6e499774a17ff727 (patch)
treea0383b13d6749d2f314c3664cce23bdb254d4815 /installer/installer.php
parentdb03c5d799dbe34301b7034018a254ab0f0f32f3 (diff)
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.
Diffstat (limited to 'installer/installer.php')
-rw-r--r--installer/installer.php4
1 files changed, 1 insertions, 3 deletions
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) {