From 5384ed0240d9ce6774373deb3a324801049a82aa Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 9 Sep 2010 10:54:01 +0000
Subject: [PATCH] Fixed a problem with client templates in the remoting
 functions.

---
 interface/lib/classes/remoting.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 2309ad944c..7ded1df377 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -1925,7 +1925,7 @@ class remoting {
 		$app->remoting_lib->loadUserProfile($reseller_id);
 		
 		//* load the client template
-		if(isset($params['template_master']) and $params['template_master'])
+		if(isset($params['template_master']) and $params['template_master'] > 0)
 		{
 			$template=$app->db->queryOneRecord("SELECT * FROM client_template WHERE template_id=".intval($params['template_master']));
 			$params=array_merge($params,$template);
-- 
GitLab