Skip to content

Commit 984aadf

Browse files
author
Marius Cramer
committed
Fixed: FS#3639 - Error: [Invalid reseller] after update
1 parent 8e283b5 commit 984aadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ public function client_add($session_id, $reseller_id, $params)
14261426

14271427
if($params['parent_client_id']) {
14281428
// check if this one is reseller
1429-
$check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($client_id));
1429+
$check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($params['parent_client_id']));
14301430
if($check['limit_client'] == 0) {
14311431
$this->server->fault('Invalid reseller', 'Selected client is not a reseller.');
14321432
return false;

0 commit comments

Comments
 (0)