diff options
Diffstat (limited to 'plugins/debug_logger/debug_logger.php')
-rw-r--r-- | plugins/debug_logger/debug_logger.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/debug_logger/debug_logger.php b/plugins/debug_logger/debug_logger.php index 1e015c201..87a163785 100644 --- a/plugins/debug_logger/debug_logger.php +++ b/plugins/debug_logger/debug_logger.php @@ -142,8 +142,9 @@ class debug_logger extends rcube_plugin return $args; } - function __destruct(){ - $this->runlog->end(); + function __destruct() + { + if ($this->runlog) + $this->runlog->end(); } } -?> |