Remove leftover from copy/paste. Do not replace and check if ['serial'] exists..

This commit is contained in:
Mark Schouten 2016-08-04 13:44:39 +02:00
parent 3f3c18c21b
commit 82819bf33b
2 changed files with 3 additions and 12 deletions

View file

@ -62,7 +62,7 @@ class PdnsAPI {
unset($zonedata['url']);
unset($zonedata['rrsets']);
if (gettype($zone['serial']) != 'integer') {
if (!isset($zone['serial']) or gettype($zone['serial']) != 'integer') {
$api->method = 'POST';
$api->url = '/servers/localhost/zones';
$api->content = json_encode($zonedata);