Commit 8a4a1faf authored by Marius Cramer's avatar Marius Cramer
Browse files

Merge branch 'vhost_sql_fix' into 'master'

Vhost sql fix

Fix for changing tab on site web, when logged as admin.
parents 63524b8e 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment