Fix for MX with priority 0

Author:    Paul Jones <info@beyondthebox.co.nz>
Date:      Sun Jun 21 07:42:38 2020 +0000
This commit is contained in:
Paul Jones
2020-06-21 07:42:38 +00:00
committed by Paul Jone
parent 694342f718
commit 251ab5247d
2 changed files with 52 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ class DNS implements API
$options['ttl'] = $ttl;
}
if (!empty($priority)) {
if (is_numeric($priority)) {
$options['priority'] = (int)$priority;
}