aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index 8c118eff3..24e77527f 100644
--- a/include/network.php
+++ b/include/network.php
@@ -486,8 +486,13 @@ function z_dns_check($h,$check_mx = 0) {
// dns_get_record() has issues on some platforms
// so allow somebody to ignore it completely
+ // Use config values from memory as this can be called during setup
+ // before a database or even any config structure exists.
- if(get_config('system','do_not_check_dns'))
+ if(is_array(\App::$config) && array_key_exists('system',\App::$config)
+ && is_array(\App::$config['system'])
+ && array_key_exists('do_not_check_dns',\App::$config['system'])
+ && \App::$config['system']['do_not_check_dns'])
return true;
$opts = DNS_A + DNS_CNAME + DNS_PTR;