diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-09-25 16:13:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-09-25 16:13:12 +0000 |
commit | 0f06b7cecd9c367e90e8e250c712c4438cddaac1 (patch) | |
tree | a1640e8f0e2f2df3592f499200f283acf4d08166 /etc | |
parent | a5f94f145d4ab78080665967be515382914b6b94 (diff) | |
download | pfsense-0f06b7cecd9c367e90e8e250c712c4438cddaac1.zip pfsense-0f06b7cecd9c367e90e8e250c712c4438cddaac1.tar.gz |
Hush up PHP warnings.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2b472a2..558766e 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3687,12 +3687,14 @@ function is_wan_interface_up($interface) { } function add_hostname_to_watch($hostname) { + error_reporting(0); if(is_hostname($hostname)) { $dnshost = gethostbyaddr($hostname); if(!is_dir("/var/db/dnscache")) mkdir("/var/db/dnscache"); exec("echo $dnshost > /var/db/dnscache/$hostname"); } + error_reporting(1); } ?>
\ No newline at end of file |