From e9d666d54cb55de7dd8c863d21cd3843fe8b7918 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 23 Feb 2021 17:29:08 +0100 Subject: [PATCH] Avoid file 0 with log in pandora_console --- pandora_console/ajax.php | 2 +- pandora_console/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index 9b59695555..0ec47ccee8 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -61,7 +61,7 @@ if (isset($config['console_log_enabled']) === true ini_set('error_log', $config['homedir'].'/log/console.log'); } else { ini_set('log_errors', 0); - ini_set('error_log', 0); + ini_set('error_log', null); } // Hash login process. diff --git a/pandora_console/index.php b/pandora_console/index.php index 39fed07752..8943c49bd6 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -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', 0); + ini_set('error_log', null); } if (isset($config['error'])) {