Skip to content
Snippets Groups Projects
Commit 0ba9a6b2 authored by Sergio's avatar Sergio
Browse files

intval for client_group_id variable

parent 63524b8e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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