etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc PHP Warning: Use of undefined constant CREATE... for https://github.com/opnsense/core/issues/3400

This commit is contained in:
Ad Schellevis
2019-04-09 11:58:37 +02:00
parent a8c1cda95f
commit eb73d021a0
@@ -681,12 +681,12 @@ class updatedns
if (!empty($OldIP)) {
/* Your Hostname already exists, deleting and creating it again */
$changes = array();
$changes[] = $r53->prepareChange(DELETE, $hostname, $RecordType, $OldTTL, $OldIP);
$changes[] = $r53->prepareChange(CREATE, $hostname, $RecordType, $NewTTL, $NewIP);
$changes[] = $r53->prepareChange("DELETE", $hostname, $RecordType, $OldTTL, $OldIP);
$changes[] = $r53->prepareChange("CREATE", $hostname, $RecordType, $NewTTL, $NewIP);
$result = $r53->changeResourceRecordSets("/hostedzone/$ZoneID", $changes);
} else {
/* Your Hostname does not exist yet, creating it */
$changes = $r53->prepareChange(CREATE, $hostname, $RecordType, $NewTTL, $NewIP);
$changes = $r53->prepareChange("CREATE", $hostname, $RecordType, $NewTTL, $NewIP);
$result = $r53->changeResourceRecordSets("/hostedzone/$ZoneID", $changes);
}
}