From 4f013d4081e8a9d7ad3dccfbc5180b403d600851 Mon Sep 17 00:00:00 2001 From: Jelle Luteijn Date: Thu, 8 Feb 2018 23:41:07 +0100 Subject: [PATCH] Fixing Undefined index PHP Notice: Undefined index: label in /var/www/nsedit/wwwroot/zones.php on line 325 --- zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zones.php b/zones.php index a784673..0234a62 100644 --- a/zones.php +++ b/zones.php @@ -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(); }