Merge branch 'ent-7070-archivo-raro-0-en-pandoa_console' into 'develop'

Avoid file 0 with log in pandora_console

See merge request artica/pandorafms!3863
This commit is contained in:
Daniel Rodriguez 2021-04-09 11:53:26 +00:00
commit bcb0832309
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ if (isset($config['console_log_enabled']) === true
ini_set('error_log', $config['homedir'].'/log/console.log'); ini_set('error_log', $config['homedir'].'/log/console.log');
} else { } else {
ini_set('log_errors', 0); ini_set('log_errors', 0);
ini_set('error_log', 0); ini_set('error_log', null);
} }
// Sometimes input is badly retrieved from caller... // Sometimes input is badly retrieved from caller...

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'); ini_set('error_log', $config['homedir'].'/log/console.log');
} else { } else {
ini_set('log_errors', 0); ini_set('log_errors', 0);
ini_set('error_log', 0); ini_set('error_log', null);
} }
if (isset($config['error'])) { if (isset($config['error'])) {