diff options
-rw-r--r-- | inc/infoutils.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index ac6a0a84c..d3c6f2918 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -304,6 +304,9 @@ function dbg($msg,$hidden=false){ */ function dbglog($msg,$header=''){ global $conf; + // The debug log isn't automatically cleaned thus only write it when + // debugging has been enabled by the user. + if($conf['allowdebug'] !== 1) return; if(is_object($msg) || is_array($msg)){ $msg = print_r($msg,true); } |