Skip to content

Commit

Permalink
Fix access of an array key which does not exist in some circumstances
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Oct 24, 2014
1 parent 03bbc2e commit 1bd5868
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icinga/Application/WebSetup.php
Expand Up @@ -252,7 +252,9 @@ public function getInstaller()
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']
))
);
Expand Down

0 comments on commit 1bd5868

Please sign in to comment.