mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
#11377 Fix sql query
This commit is contained in:
parent
2e4066973a
commit
57df761622
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user