diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-20 08:29:38 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-20 08:29:38 +0100 |
commit | 9ff3459d7be09d1378d703cf61ecc658aa25a22f (patch) | |
tree | 378b77a52e4edaa555c4f07037f68df829283f57 | |
parent | f27c536401cee253fd59f58cf391dffe0f9c6bfc (diff) |
Check if checkdnsrr() and getmxrr() functions exist before using them
-rw-r--r-- | program/include/rcube_utils.php | 4 |
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; } } |