Fixes problem with creating an MX record

Fixes #60
php api expects a string and cloudflare api expects a int
this keeps everybody happy without changing API's
This commit is contained in:
Robbert Müller
2018-08-28 08:47:50 +02:00
committed by GitHub
parent 63be6cf154
commit 9076d714f4

View File

@@ -52,7 +52,7 @@ class DNS implements API
} }
if (!empty($priority)) { if (!empty($priority)) {
$options['priority'] = $priority; $options['priority'] = (int)$priority;
} }
$user = $this->adapter->post('zones/' . $zoneID . '/dns_records', $options); $user = $this->adapter->post('zones/' . $zoneID . '/dns_records', $options);