We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63524b8 + 0ba9a6b commit 8a4a1faCopy full SHA for 8a4a1fa
1 file changed
interface/lib/plugins/sites_web_vhost_domain_plugin.inc.php
@@ -85,7 +85,7 @@ function sites_web_vhost_domain_edit($event_name, $page_form) {
85
$client_id = $app->functions->intval($client["client_id"]);
86
}
87
88
- $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);
89
$client_user_id = $app->functions->intval(($tmp['userid'] > 0)?$tmp['userid']:1);
90
91
// Set the values for document_root, system_user and system_group
0 commit comments