From b5a0dc34a3bebd221fe8a564595d4c644122e11d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 16 Dec 2010 17:21:13 -0500
Subject: [PATCH] Merged revisions 2144-2150 from stable branch.

---
 interface/lib/classes/remoting.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 2309ad9..7ded1df 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -1925,7 +1925,7 @@
 		$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);

--
Gitblit v1.9.1