#11377 Fix sql query

This commit is contained in:
miguel angel rasteu 2023-08-02 09:11:55 +02:00
parent 2e4066973a
commit 57df761622

View File

@ -70,9 +70,11 @@ if (is_ajax()) {
$get_all_groups = get_parameter('get_all_groups', '0'); $get_all_groups = get_parameter('get_all_groups', '0');
if ($get_all_groups !== '0') { if ($get_all_groups !== '0') {
$profile_data = db_get_all_rows_filter( $profile_data = db_get_all_rows_sql(
'tusuario_perfil', 'SELECT *
['id_perfil' => $id_profile[0]] FROM tusuario_perfil
WHERE `id_perfil` = "'.$id_profile[0].'"
GROUP BY id_usuario'
); );
} else { } else {
if (strlen($id_profile[0]) > 0 && strlen($id_group[0]) > 0) { if (strlen($id_profile[0]) > 0 && strlen($id_group[0]) > 0) {