Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index f88626570..f12fabc28 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1186,6 +1186,12 @@ class rcmail extends rcube
$this->address_books = [];
+ // In CLI stop here, prevent from errors when the console.log might exist,
+ // but be not accessible
+ if (php_sapi_name() == 'cli') {
+ return;
+ }
+
// write performance stats to logs/console
if ($this->config->get('devel_mode') || $this->config->get('performance_stats')) {
// we have to disable per_user_logging to make sure stats end up in the main console log