Marius Cramer
2014-07-08 8db41e9b3309300054907d2183692dd5fa0f0d56
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
1 files modified
2 ■■■ changed files
interface/lib/classes/client_templates.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/client_templates.inc.php
@@ -109,7 +109,7 @@
        $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