mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Remove leftover from copy/paste. Do not replace and check if ['serial'] exists..
This commit is contained in:
parent
3f3c18c21b
commit
82819bf33b
2 changed files with 3 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue