Marius Cramer
2014-08-25 984aadfc91779e11564ed57742bb349e7b9746a1
Fixed: FS#3639 - Error: [Invalid reseller] after update
1 files modified
2 ■■■ changed files
interface/lib/classes/remoting.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/remoting.inc.php
@@ -1426,7 +1426,7 @@
        
        if($params['parent_client_id']) {
            // check if this one is reseller
            $check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($client_id));
            $check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($params['parent_client_id']));
            if($check['limit_client'] == 0) {
                $this->server->fault('Invalid reseller', 'Selected client is not a reseller.');
                return false;