summaryrefslogtreecommitdiff
path: root/plugins/debug_logger/debug_logger.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/debug_logger/debug_logger.php')
-rw-r--r--plugins/debug_logger/debug_logger.php7
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();
}
}
-?>