Skip to content
Snippets Groups Projects
Commit a504ec4a authored by Thom's avatar Thom :tools:
Browse files

Fix fault for DNS Zone template

parent a193d8ea
No related branches found
No related tags found
1 merge request!1021DNS additions
...@@ -736,7 +736,7 @@ class remoting_dns extends remoting { ...@@ -736,7 +736,7 @@ class remoting_dns extends remoting {
//* Get All DNS Zones Templates by etruel //* Get All DNS Zones Templates by etruel and thom
public function dns_templatezone_get_all($session_id) { public function dns_templatezone_get_all($session_id) {
global $app, $conf; global $app, $conf;
if(!$this->checkPerm($session_id, 'dns_templatezone_add')) { if(!$this->checkPerm($session_id, 'dns_templatezone_add')) {
...@@ -749,7 +749,7 @@ class remoting_dns extends remoting { ...@@ -749,7 +749,7 @@ class remoting_dns extends remoting {
return $result; return $result;
} }
else { else {
this->server->fault('template_id_error', 'There is no DNS templates.'); throw new SoapFault('template_id_error', 'There is no DNS templates.');
return false; return false;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment