From b005927f919cbc09dccf71e8c638be45a8af37d0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 19 Jan 2013 12:16:16 +0100 Subject: Add basic tests for plugins --- plugins/debug_logger/debug_logger.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/debug_logger/debug_logger.php') 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(); } } -?> -- cgit v1.2.3