File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,9 @@ function ispconfig_sysuser_update($params, $client_id){
308308 global $ app ;
309309 $ username = $ params ["username " ];
310310 $ clear_password = $ params ["password " ];
311+ $ language = $ params ['language ' ];
311312 $ client_id = $ app ->functions ->intval ($ client_id );
313+
312314 if (!isset ($ params ['_ispconfig_pw_crypted ' ]) || $ params ['_ispconfig_pw_crypted ' ] != 1 ) $ password = $ app ->auth ->crypt_password (stripslashes ($ clear_password ));
313315 else $ password = $ clear_password ;
314316 $ params = array ($ username );
@@ -318,8 +320,15 @@ function ispconfig_sysuser_update($params, $client_id){
318320 } else {
319321 $ pwstring ="" ;
320322 }
323+
324+ $ langstring = '' ;
325+ if (!empty ($ language )) {
326+ $ langstring = ', language = ? ' ;
327+ $ params [] = $ language ;
328+ }
329+
321330 $ params [] = $ client_id ;
322- $ sql = "UPDATE sys_user set username = ? $ pwstring WHERE client_id = ? " ;
331+ $ sql = "UPDATE sys_user set username = ? $ pwstring $ langstring WHERE client_id = ? " ;
323332 $ app ->db ->query ($ sql , true , $ params );
324333 }
325334
You can’t perform that action at this time.
0 commit comments