Skip to content

Commit a063c3a

Browse files
author
Marius Cramer
committed
Fixed: FS#3639 - Error: [Invalid reseller] after update (missing fix for previous commit)
1 parent 984aadf commit a063c3a

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
@@ -1461,7 +1461,7 @@ public function client_update($session_id, $client_id, $reseller_id, $params)
14611461

14621462
if($params['parent_client_id']) {
14631463
// check if this one is reseller
1464-
$check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($client_id));
1464+
$check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ' . intval($params['parent_client_id']));
14651465
if($check['limit_client'] == 0) {
14661466
$this->server->fault('Invalid reseller', 'Selected client is not a reseller.');
14671467
return false;

0 commit comments

Comments
 (0)