BUGFIX Fixed installer breaking if stats checkbox unchecked (from r101098)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112216 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-13 04:26:31 +00:00
parent 55c0e7e915
commit 1af78e980d

View File

@ -808,8 +808,6 @@ class Installer extends InstallRequirements {
$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 @@ class Installer extends InstallRequirements {
}
$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) {