Marius Cramer
2014-08-25 a063c3a3b423884c7bc038ffb67cdd1e83859eb3
Fixed:  FS#3639 - Error: [Invalid reseller] after update  (missing fix for previous commit)
1 files modified
2 ■■■ changed files
interface/lib/classes/remoting.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/remoting.inc.php
@@ -1461,7 +1461,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;