mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user