diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 2309ad944c268ebb66c75ec56f8bd0c3b871f4d7..7ded1df377e1965e8fc4b2ff02bc8eba5be52258 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);