Skip to content

Commit f50e0ef

Browse files
committed
fix is_reseller for reseller with unlimited clients on apply_client_templates
1 parent 80e18c2 commit f50e0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/client_templates.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function apply_client_templates($clientId) {
109109
$sql = "SELECT template_master, template_additional,limit_client FROM client WHERE client_id = " . $app->functions->intval($clientId);
110110
$record = $app->db->queryOneRecord($sql);
111111
$masterTemplateId = $record['template_master'];
112-
$is_reseller = ($record['limit_client'] > 0)?true:false;
112+
$is_reseller = ($record['limit_client'] != 0)?true:false;
113113

114114
if($record['template_additional'] != '') {
115115
// we have to call the update_client_templates function

0 commit comments

Comments
 (0)