#12695 wip remove warnings

This commit is contained in:
Jonathan 2024-02-21 17:07:25 +01:00
parent e6e98aeb39
commit 50187a8c15
3 changed files with 7 additions and 3 deletions

View File

@ -408,7 +408,7 @@ class Cloud extends Wizard
{ {
global $config; global $config;
$pandora = io_safe_output($config['cloud_util_path']); $pandora = io_safe_output(($config['cloud_util_path'] ?? ''));
if (isset($pandora) === false) { if (isset($pandora) === false) {
config_update_value('cloud_util_path', '/usr/bin/pandora-cm-api'); config_update_value('cloud_util_path', '/usr/bin/pandora-cm-api');

View File

@ -694,7 +694,7 @@ class Diagnostics extends Wizard
WHERE tagente_estado.estado = 4'; WHERE tagente_estado.estado = 4';
$notInitAgents = db_get_sql($sqlNotInitAgents); $notInitAgents = db_get_sql($sqlNotInitAgents);
$dateDbMantenaince = $config['db_maintance']; $dateDbMantenaince = ($config['db_maintance'] ?? '');
$currentTime = time(); $currentTime = time();

View File

@ -657,7 +657,7 @@ class HTML
// Print independent block of inputs. // Print independent block of inputs.
$output .= '<ul class="wizard '.$input['block_class'].'">'; $output .= '<ul class="wizard '.$input['block_class'].'">';
$output .= '<li id="'.$input['block_id'].'" class="'.$class.'">'; $output .= '<li id="'.($input['block_id'] ?? '').'" class="'.$class.'">';
foreach ($input['block_content'] as $input) { foreach ($input['block_content'] as $input) {
$output .= self::printBlockAsGrid($input, $return); $output .= self::printBlockAsGrid($input, $return);
} }
@ -1033,6 +1033,10 @@ class HTML
$form['extra'] = ''; $form['extra'] = '';
} }
if (isset($form['enctype']) === false) {
$form['enctype'] = '';
}
$rows = $data['rows']; $rows = $data['rows'];
$rawInputs = $data['rawInputs']; $rawInputs = $data['rawInputs'];
$js = $data['js']; $js = $data['js'];