summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-20 08:29:38 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-20 08:29:38 +0100
commit9ff3459d7be09d1378d703cf61ecc658aa25a22f (patch)
tree378b77a52e4edaa555c4f07037f68df829283f57
parentf27c536401cee253fd59f58cf391dffe0f9c6bfc (diff)
Check if checkdnsrr() and getmxrr() functions exist before using them
-rw-r--r--program/include/rcube_utils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_utils.php b/program/include/rcube_utils.php
index dfaa9b943..fd5bda676 100644
--- a/program/include/rcube_utils.php
+++ b/program/include/rcube_utils.php
@@ -134,12 +134,12 @@ class rcube_utils
}
// find MX record(s)
- if (getmxrr($domain_part, $mx_records)) {
+ if (!function_exists('getmxrr') || getmxrr($domain_part, $mx_records)) {
return true;
}
// find any DNS record
- if (checkdnsrr($domain_part, 'ANY')) {
+ if (!function_exists('checkdnsrr') || checkdnsrr($domain_part, 'ANY')) {
return true;
}
}