Skip to content

Commit eb35b58

Browse files
author
Marius Cramer
committed
Merge branch 'master' of git.ispconfig.org:ispconfig/ispconfig3
2 parents acd2383 + 8684fba commit eb35b58

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

interface/web/dns/dns_a_edit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
class page_action extends dns_page_action {
4747

4848
protected function checkDuplicate() {
49+
global $app;
4950
//* Check for duplicates where IP and hostname are the same
5051
$tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)", $this->dataRecord["name"], $this->dataRecord["zone"], $this->dataRecord["data"], $this->id, $this->dataRecord["name"], $this->dataRecord["zone"], $this->id);
5152
if($tmp['number'] > 0) return true;

interface/web/dns/dns_cname_edit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
class page_action extends dns_page_action {
4747

4848
protected function checkDuplicate() {
49+
global $app;
4950
//* Check for duplicates where IP and hostname are the same
5051
$tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)", $this->dataRecord["name"], $this->dataRecord["zone"], $this->id, $this->dataRecord["name"], $this->dataRecord["zone"], $this->id);
5152
if($tmp['number'] > 0) return true;

0 commit comments

Comments
 (0)