Fix access of an array key which does not exist in some circumstances

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-24 13:57:30 +02:00
parent 03bbc2e2e6
commit 1bd5868a88
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@ class WebSetup extends Wizard implements SetupWizard
new GeneralConfigStep(array(
'generalConfig' => $pageData['setup_general_config'],
'preferencesType' => $pageData['setup_preferences_type']['type'],
'preferencesResource' => $pageData['setup_db_resource']['name'],
'preferencesResource' => isset($pageData['setup_db_resource']['name'])
? $pageData['setup_db_resource']['name']
: null,
'fileMode' => $pageData['setup_general_config']['global_filemode']
))
);