summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-15 14:19:37 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-15 14:19:37 +1100
commit1769de4cdce259bedd98973cdf5a3af8a99fcbf1 (patch)
treeaa0116cd79211399489e8c3cf15a335cbfb3950b /inc
parent5abe3ae4b28d0279db1558adbf22cdd5fcf14699 (diff)
h
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php
index a8a2a2e2..9eeef682 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1682,19 +1682,19 @@
if(!$config['dns_system']) {
$ip_addr = gethostbyname($host);
if($ip_addr == $host)
- return false;
+ $ip_addr = false;
} else {
$resp = shell_exec('host -W 1 ' . $host);
if(preg_match('/has address ([^\s]+)$/', $resp, $m))
$ip_addr = $m[1];
else
- return false;
+ $ip_addr = false;
}
if($config['cache']['enabled'])
cache::set('dns_' . $host, $ip_addr, 3600);
- return $host;
+ return $ip_addr;
}