Skip to content
Browse files

BUGFIX Fixed installer breaking if stats checkbox unchecked (from r10…

…1098)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112216 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 55c0e7e commit 1af78e980dee3ca2440cf3e7bfed5a9279da7505 sminnee committed Oct 13, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 install.php
View
5 install.php
@@ -808,8 +808,6 @@ function install($config) {
$phpVersion = urlencode(phpversion());
$encWebserver = urlencode($webserver);
- $type = $config['db']['type'];
- $dbConfig = $config['db'][$type];
if($type == 'MySQLDatabase') {
$conn = @mysql_connect($dbConfig['server'], null, null);
@@ -835,6 +833,9 @@ function install($config) {
}
$theme = isset($_POST['template']) ? $_POST['template'] : 'blackcandy';
$locale = isset($_POST['locale']) ? $_POST['locale'] : 'en_US';
+ $type = $config['db']['type'];
+ $dbConfig = $config['db'][$type];
+
// Write the config file
global $usingEnv;
if($usingEnv) {

0 comments on commit 1af78e9

Please sign in to comment.
Something went wrong with that request. Please try again.