From 5adb07c7c88240c7d844102e3649a30106f21680 Mon Sep 17 00:00:00 2001 From: Miraty Date: Mon, 24 Apr 2023 00:53:54 +0200 Subject: [PATCH] Update add-dns.php for newer db schema --- pg-act/ht/add-dns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg-act/ht/add-dns.php b/pg-act/ht/add-dns.php index d82e4a8..109b3f9 100644 --- a/pg-act/ht/add-dns.php +++ b/pg-act/ht/add-dns.php @@ -5,7 +5,7 @@ $_POST['domain'] = formatDomain($_POST['domain']); if (dirsStatuses('dns')[$_POST['dir']] !== false) output(403, 'Wrong value for dir.'); -if (query('select', 'sites', ['domain' => $_POST['domain']], 'domain') !== []) +if (query('select', 'sites', ['address' => $_POST['domain']], 'address') !== []) output(403, _('This domain already exists on this service. Use another one.')); $remoteAaaaRecords = dns_get_record($_POST['domain'], DNS_AAAA);