From 86445befde6f5b97c55a9722b9a2f64ded1e211f Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 28 Jan 2017 00:02:39 +0000 Subject: [PATCH] quick tidy up of dnslookup function #5633 (#5639) --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index e0c2552fc9..27a5e80a3c 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1513,7 +1513,7 @@ function oxidized_reload_nodes() function dnslookup($device, $type = false, $return = false) { if (filter_var($device['hostname'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) == true || filter_var($device['hostname'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) == true) { - return ''; + return false; } if (empty($type)) { // We are going to use the transport to work out the record type @@ -1526,7 +1526,7 @@ function dnslookup($device, $type = false, $return = false) } } if (empty($return)) { - return ''; + return false; } $record = dns_get_record($device['hostname'], $type); return $record[0][$return];