Aleksander Machniak
2012-11-20 9ff3459d7be09d1378d703cf61ecc658aa25a22f
Check if checkdnsrr() and getmxrr() functions exist before using them
1 files modified
4 ■■■■ changed files
program/include/rcube_utils.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_utils.php
@@ -134,12 +134,12 @@
            }
            // 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;
            }
        }