File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,9 @@ function onUpdateSave($sql) {
157157
158158 $ new_config = $ app ->tform ->encode ($ this ->dataRecord , $ section );
159159 if ($ section == 'sites ' && $ new_config ['client_protection ' ] != 'y ' && $ server_config_array ['sites ' ]['client_protection ' ] == 'y ' ) {
160- $ app ->db ->query ("UPDATE web_domain sys_perm_group = 'riud' WHERE added_by = admin " );
160+ $ app ->db ->query ("UPDATE ` web_domain` SET ` sys_perm_group` = 'riud' WHERE ` added_by` = ' admin' " );
161161 } elseif ($ section == 'sites ' && $ new_config ['client_protection ' ] != 'n ' && $ server_config_array ['sites ' ]['client_protection ' ] == 'n ' ) {
162- $ app ->db ->query ("UPDATE web_domain sys_perm_group = 'ru' WHERE added_by = admin " );
162+ $ app ->db ->query ("UPDATE ` web_domain` SET ` sys_perm_group` = 'ru' WHERE ` added_by` = ' admin' " );
163163 }
164164 if ($ section == 'sites ' && $ new_config ['vhost_subdomains ' ] != 'y ' && $ server_config_array ['sites ' ]['vhost_subdomains ' ] == 'y ' ) {
165165 // check for existing vhost subdomains, if found the mode cannot be disabled
You can’t perform that action at this time.
0 commit comments