diff --git a/interface/lib/classes/client_templates.inc.php b/interface/lib/classes/client_templates.inc.php
index 64beb9eb53942c2f8229cb9df49f293c9a29b772..81f8bd37f5df45921f7cb7a257360624e187e4c8 100644
--- a/interface/lib/classes/client_templates.inc.php
+++ b/interface/lib/classes/client_templates.inc.php
@@ -109,7 +109,7 @@ class client_templates {
 		$sql = "SELECT template_master, template_additional,limit_client FROM client WHERE client_id = " . $app->functions->intval($clientId);
 		$record = $app->db->queryOneRecord($sql);
 		$masterTemplateId = $record['template_master'];
-		$is_reseller = ($record['limit_client'] > 0)?true:false;
+		$is_reseller = ($record['limit_client'] != 0)?true:false;
 
 		if($record['template_additional'] != '') {
 			// we have to call the update_client_templates function