diff options
-rw-r--r-- | etc/inc/dyndns.class | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 843a03c..caf8770 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -1085,7 +1085,11 @@ * - This function is only called when a unknown response * - status is returned from a DynDNS service provider. */ - function _debug ($data) { + function _debug($data) { + global $g; + + if (!$g['debug']) + return; $string = '\n'.date('m-d-y h:i:s').' - ('.$this->_debugID.') - ['.$this->_dnsService.'] - '.$data.'\n'; conf_mount_rw(); $file = fopen($this->_debugFile, 'a'); |