Skip to content

Commit 8db41e9

Browse files
author
Marius Cramer
committed
Merge branch 'fix_is_reseller' into 'master'
Fix is reseller reseller are now allowed to have -1 for limit_client, but I found another place where a > 0 check was used
2 parents b4945ae + f50e0ef commit 8db41e9

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)