fix if in header and declare correctly a value

This commit is contained in:
miguel angel rasteu 2023-04-13 11:36:13 +02:00
parent c26db22fa5
commit dc41e1c377
2 changed files with 2 additions and 5 deletions

View File

@ -352,10 +352,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
}
// Button for feedback pandora.
if (enterprise_installed() && ( (!isset($config['activate_feedback'])
|| (isset($config['activate_feedback'])
&& $config['activate_feedback'] === true )) )
) {
if (enterprise_installed() && $config['activate_feedback'] !== false) {
$header_feedback = '<div id="feedback-icon-header">';
$header_feedback .= '<div id="modal-feedback-form" class="invisible"></div>';
$header_feedback .= '<div id="msg-header" class="invisible"></div>';

View File

@ -3335,7 +3335,7 @@ function config_process_config()
}
if (!isset($config['activate_feedback'])) {
config_update_value('activate_feedback', 1);
config_update_value('activate_feedback', true);
}
if (!isset($config['api_password'])) {