minor fixes

This commit is contained in:
fbsanchez 2022-01-26 17:34:56 +01:00
parent 9c09f43ad8
commit 81b1454b2e
2 changed files with 5 additions and 3 deletions

View File

@ -38,6 +38,8 @@ require_once $config['homedir'].'/godmode/wizards/Wizard.main.php';
class Diagnostics extends Wizard
{
const INNODB_FLUSH_LOG_AT_TRX_COMMIT = 1;
/**
* Ajax controller page.
*
@ -797,8 +799,8 @@ class Diagnostics extends Wizard
case 'innodb_flush_log_at_trx_commit':
$name = __('InnoDB flush log at trx-commit');
$value = $item['Value'];
$status = ($item['Value'] == 2) ? 1 : 0;
$message = __('Recommended Value').' 2';
$status = ((int) $item['Value'] === self::INNODB_FLUSH_LOG_AT_TRX_COMMIT) ? 1 : 0;
$message = __('Recommended Value %d', self::INNODB_FLUSH_LOG_AT_TRX_COMMIT);
break;
case 'innodb_lock_wait_timeout':

View File

@ -148,7 +148,7 @@ if (isset($config['console_log_enabled']) && $config['console_log_enabled'] == 1
ini_set('error_log', $config['homedir'].'/log/console.log');
} else {
ini_set('log_errors', 0);
ini_set('error_log', null);
ini_set('error_log', '');
}
if (isset($config['error'])) {