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 { ...@@ -106,7 +106,7 @@ class z_php_fpm_incron_reload_plugin {
$app->uses('getconf'); $app->uses('getconf');
$serverConfig = $app->getconf->get_server_config($conf['server_id'], 'web'); $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) { private function createIncronConfiguration($triggerFile, $systemUser, $fastcgiPhpVersion) {
......
...@@ -94,7 +94,7 @@ if ($app->dbmaster->testConnection()) { ...@@ -94,7 +94,7 @@ if ($app->dbmaster->testConnection()) {
// retrieve admin email address for notifications // retrieve admin email address for notifications
$sys_ini = $app->db->queryOneRecord("SELECT * FROM sys_ini WHERE sysini_id = 1"); $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['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); unset($sys_ini);
/* /*
...@@ -170,9 +170,9 @@ if ($app->db->testConnection() && $app->dbmaster->testConnection()) { ...@@ -170,9 +170,9 @@ if ($app->db->testConnection() && $app->dbmaster->testConnection()) {
$app->modules->loadModules('all'); $app->modules->loadModules('all');
//** Load the plugins that are in the plugins-enabled folder //** Load the plugins that are in the plugins-enabled folder
$app->plugins->loadPlugins('all'); $app->plugins->loadPlugins('all');
$app->plugins->raiseAction('server_plugins_loaded', ''); $app->plugins->raiseAction('server_plugins_loaded', '');
if ($tmp_num_records > 0) { if ($tmp_num_records > 0) {
$app->log("Found $tmp_num_records changes, starting update process.", LOGLEVEL_DEBUG); $app->log("Found $tmp_num_records changes, starting update process.", LOGLEVEL_DEBUG);
//** Go through the sys_datalog table and call the processing functions //** Go through the sys_datalog table and call the processing functions
......
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