Only write to debug log if debug is enabled

develop
Steve Allison 2013-02-21 14:14:03 +00:00
parent 43fa4a0678
commit 25ccada7c6
1 changed files with 1 additions and 0 deletions

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);
}
/**