From f50e0eff638ba506898a1f00bbdaebab2431dd58 Mon Sep 17 00:00:00 2001 From: Sergio Cambra <sergio@programatica.es> Date: Mon, 7 Jul 2014 14:38:11 +0200 Subject: [PATCH] fix is_reseller for reseller with unlimited clients on apply_client_templates --- interface/lib/classes/client_templates.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/lib/classes/client_templates.inc.php b/interface/lib/classes/client_templates.inc.php index 64beb9eb53..81f8bd37f5 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 -- GitLab