Skip to content

Commit 8a4a1fa

Browse files
author
Marius Cramer
committed
Merge branch 'vhost_sql_fix' into 'master'
Vhost sql fix Fix for changing tab on site web, when logged as admin.
2 parents 63524b8 + 0ba9a6b commit 8a4a1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/plugins/sites_web_vhost_domain_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function sites_web_vhost_domain_edit($event_name, $page_form) {
8585
$client_id = $app->functions->intval($client["client_id"]);
8686
}
8787

88-
$tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = $client_group_id");
88+
$tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = ?", $client_group_id);
8989
$client_user_id = $app->functions->intval(($tmp['userid'] > 0)?$tmp['userid']:1);
9090

9191
// Set the values for document_root, system_user and system_group

0 commit comments

Comments
 (0)