From 57df761622ee5d9132fe2d650c60b03e1a8ccad7 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Wed, 2 Aug 2023 09:11:55 +0200 Subject: [PATCH] #11377 Fix sql query --- .../godmode/massive/massive_delete_profiles.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/massive/massive_delete_profiles.php b/pandora_console/godmode/massive/massive_delete_profiles.php index b55ab6deb1..7b39f1be84 100644 --- a/pandora_console/godmode/massive/massive_delete_profiles.php +++ b/pandora_console/godmode/massive/massive_delete_profiles.php @@ -70,9 +70,11 @@ if (is_ajax()) { $get_all_groups = get_parameter('get_all_groups', '0'); if ($get_all_groups !== '0') { - $profile_data = db_get_all_rows_filter( - 'tusuario_perfil', - ['id_perfil' => $id_profile[0]] + $profile_data = db_get_all_rows_sql( + 'SELECT * + FROM tusuario_perfil + WHERE `id_perfil` = "'.$id_profile[0].'" + GROUP BY id_usuario' ); } else { if (strlen($id_profile[0]) > 0 && strlen($id_group[0]) > 0) {