diff --git a/interface/lib/classes/remote.d/dns.inc.php b/interface/lib/classes/remote.d/dns.inc.php
index 9b5e6b74ad8feced21e23f27990723e59c99f165..f4c75ba25b13343cae6e1a14ae8fe730464b8bf3 100644
--- a/interface/lib/classes/remote.d/dns.inc.php
+++ b/interface/lib/classes/remote.d/dns.inc.php
@@ -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) {
 		global $app, $conf;
 	  if(!$this->checkPerm($session_id, 'dns_templatezone_add')) {
@@ -749,7 +749,7 @@ class remoting_dns extends remoting {
 			return $result;
 		}
 		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;
 		}
 	}