Skip to content
Snippets Groups Projects
Commit adb537c3 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fix from previous commit

parent 4a34e61e
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ class remoting_client extends remoting { ...@@ -171,7 +171,7 @@ class remoting_client extends remoting {
// check if this one is reseller // check if this one is reseller
$check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ?', intval($params['parent_client_id'])); $check = $app->db->queryOneRecord('SELECT `limit_client` FROM `client` WHERE `client_id` = ?', intval($params['parent_client_id']));
if($check['limit_client'] == 0) { if($check['limit_client'] == 0) {
throw new SoapFault('Invalid reseller', 'Selected client is not a reseller. REMOVING PARENT_CLIENT_ID!!!'); // Selected client is not a reseller. REMOVING PARENT_CLIENT_ID!!!
$params['parent_client_id'] = 0; $params['parent_client_id'] = 0;
} elseif(isset($params['limit_client']) && $params['limit_client'] != 0) { } elseif(isset($params['limit_client']) && $params['limit_client'] != 0) {
throw new SoapFault('Invalid reseller', 'Reseller cannot be client of another reseller.'); throw new SoapFault('Invalid reseller', 'Reseller cannot be client of another reseller.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment