Skip to content

Commit a504ec4

Browse files
author
thom
committed
Fix fault for DNS Zone template
1 parent a193d8e commit a504ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/remote.d/dns.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ public function dns_zone_get_by_user($session_id, $client_id, $server_id) {
736736

737737

738738

739-
//* Get All DNS Zones Templates by etruel
739+
//* Get All DNS Zones Templates by etruel and thom
740740
public function dns_templatezone_get_all($session_id) {
741741
global $app, $conf;
742742
if(!$this->checkPerm($session_id, 'dns_templatezone_add')) {
@@ -749,7 +749,7 @@ public function dns_templatezone_get_all($session_id) {
749749
return $result;
750750
}
751751
else {
752-
this->server->fault('template_id_error', 'There is no DNS templates.');
752+
throw new SoapFault('template_id_error', 'There is no DNS templates.');
753753
return false;
754754
}
755755
}

0 commit comments

Comments
 (0)