Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
0ba9a6b2
Commit
0ba9a6b2
authored
Jul 22, 2014
by
Sergio
Browse files
intval for client_group_id variable
parent
63524b8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/plugins/sites_web_vhost_domain_plugin.inc.php
View file @
0ba9a6b2
...
...
@@ -85,7 +85,7 @@ class sites_web_vhost_domain_plugin {
$client_id
=
$app
->
functions
->
intval
(
$client
[
"client_id"
]);
}
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT userid FROM sys_user WHERE default_group =
$client_group_id
"
);
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT userid FROM sys_user WHERE default_group =
?"
,
$client_group_id
);
$client_user_id
=
$app
->
functions
->
intval
((
$tmp
[
'userid'
]
>
0
)
?
$tmp
[
'userid'
]
:
1
);
// Set the values for document_root, system_user and system_group
...
...
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