Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Massimiliano
ISPConfig 3
Commits
b18d6ed6
Commit
b18d6ed6
authored
Aug 25, 2014
by
Till Brehm
Browse files
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
parents
4f2cc4ea
a063c3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
b18d6ed6
...
...
@@ -1426,7 +1426,7 @@ class remoting {
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
;
...
...
@@ -1461,7 +1461,7 @@ class remoting {
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment