Skip to content

Commit b18d6ed

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
2 parents 4f2cc4e + a063c3a commit b18d6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 2 additions & 2 deletions
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;
@@ -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)