1Day 3 years ago
parent
commit
6186ae2b5c
2 changed files with 5 additions and 4 deletions
  1. 4 3
      public/install/forms.php
  2. 1 1
      public/install/functions.php

+ 4 - 3
public/install/forms.php

@@ -20,10 +20,11 @@ if(isset($_POST['checkDB'])){
 				header("LOCATION: index.php?step=2&message=Could not connect to the Database");	
 				die();
 			}
+
 			foreach ($values as $key => $value) {
-            	$param = $_POST[$value];
-            setEnvironmentValue($key, $param);
-        }
+				$param = $_POST[$value];
+				setEnvironmentValue($key, $param);
+			}
 			header("LOCATION: index.php?step=3");	
 		
 	}

+ 1 - 1
public/install/functions.php

@@ -26,7 +26,7 @@ function getMySQLVersion() {
 
   $versionoutput = $version[0] ?? "0";
 
-  return ($versionoutput > $requirements["mysql"] ? "OK":"not OK");; 
+  return (intval($versionoutput) > intval($requirements["mysql"]) ? "OK":$versionoutput);; 
 }
 
 function getZipVersion() {