Commit 02564b6e authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed undefined index warnings

parent acf2114f
Pipeline #11118 canceled with stage
......@@ -106,7 +106,7 @@ class z_php_fpm_incron_reload_plugin {
$app->uses('getconf');
$serverConfig = $app->getconf->get_server_config($conf['server_id'], 'web');
return $serverConfig['php_fpm_incron_reload'] === 'y';
return (isset($serverConfig['php_fpm_incron_reload']) && $serverConfig['php_fpm_incron_reload'] === 'y');
}
private function createIncronConfiguration($triggerFile, $systemUser, $fastcgiPhpVersion) {
......
......@@ -94,7 +94,7 @@ if ($app->dbmaster->testConnection()) {
// retrieve admin email address for notifications
$sys_ini = $app->db->queryOneRecord("SELECT * FROM sys_ini WHERE sysini_id = 1");
$conf['sys_ini'] = $app->ini_parser->parse_ini_string(stripslashes($sys_ini['config']));
$conf['admin_mail'] = $conf['sys_ini']['mail']['admin_mail'];
$conf['admin_mail'] = (isset($conf['sys_ini']['mail']['admin_mail']) ? $conf['sys_ini']['mail']['admin_mail'] : '');
unset($sys_ini);
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment