From a504ec4a30f8ee08ed7c53d00b7191c8cdc4e17d Mon Sep 17 00:00:00 2001
From: thom <thom@amsterdamtech.nl>
Date: Mon, 15 Jun 2020 14:45:19 +0200
Subject: [PATCH] Fix fault for DNS Zone template

---
 interface/lib/classes/remote.d/dns.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/lib/classes/remote.d/dns.inc.php b/interface/lib/classes/remote.d/dns.inc.php
index 9b5e6b74ad..f4c75ba25b 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;
 		}
 	}
-- 
GitLab