summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {