Fixing Undefined index

PHP Notice:  Undefined index: label in /var/www/nsedit/wwwroot/zones.php on line 325
This commit is contained in:
Jelle Luteijn 2018-02-08 23:41:07 +01:00 committed by GitHub
parent 1dfd47ae70
commit 4f013d4081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,7 +322,7 @@ case "create":
if ($template['name'] !== $_POST['template']) continue;
foreach ($template['records'] as $record) {
$rrset = $zone->getRRSet($record['label'], $record['type']);
$rrset = $zone->getRRSet($record['name'], $record['type']);
if ($rrset) {
$rrset->delete();
}