Only write to debug log if debug is enabled

This commit is contained in:
Steve Allison committed 2013-02-21 14:14:03 +00:00
1 parent 43fa4a0678
commit 25ccada7c6
1 file changed
+1
+1
View File
@@ -41,6 +41,7 @@ class defense extends rcube_plugin {
* @param string text for log
*/
private function debug($string) {
if (!$this->debugEnabled) { return; }
write_log($this->logfile, $this->ipaddr . " # " . $string);
}
/**