Changed query
Former-commit-id: f5094c8747677108187e0ba377b80afce2bbd5e0
This commit is contained in:
parent
0afc699b2b
commit
2ec72c4d78
|
@ -14712,7 +14712,7 @@ function api_get_info_user_name($user)
|
|||
return false;
|
||||
}
|
||||
|
||||
$sql = sprintf("select * from tperfil,tusuario_perfil where tperfil.id_perfil in (select tusuario_perfil.id_perfil from tusuario_perfil where id_usuario = '$user')");
|
||||
$sql = sprintf("select * from tperfil p,tusuario_perfil u where p.id_perfil in (select u.id_perfil from tusuario_perfil where u.id_usuario = '$user')");
|
||||
$user_profile = db_get_all_rows_sql($sql);
|
||||
if ($user_profile === false) {
|
||||
returnError('Error_user', ' User could not be found.');
|
||||
|
|
Loading…
Reference in New Issue