Skip to content
Snippets Groups Projects
Commit f50e0eff authored by Sergio's avatar Sergio
Browse files

fix is_reseller for reseller with unlimited clients on apply_client_templates

parent 80e18c2c
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ class client_templates { ...@@ -109,7 +109,7 @@ class client_templates {
$sql = "SELECT template_master, template_additional,limit_client FROM client WHERE client_id = " . $app->functions->intval($clientId); $sql = "SELECT template_master, template_additional,limit_client FROM client WHERE client_id = " . $app->functions->intval($clientId);
$record = $app->db->queryOneRecord($sql); $record = $app->db->queryOneRecord($sql);
$masterTemplateId = $record['template_master']; $masterTemplateId = $record['template_master'];
$is_reseller = ($record['limit_client'] > 0)?true:false; $is_reseller = ($record['limit_client'] != 0)?true:false;
if($record['template_additional'] != '') { if($record['template_additional'] != '') {
// we have to call the update_client_templates function // we have to call the update_client_templates function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment