Fix api get group by id bug

This commit is contained in:
Calvo 2021-09-17 11:52:30 +02:00
parent 62775e0dae
commit 796f083730
1 changed files with 1 additions and 1 deletions

View File

@ -16741,7 +16741,7 @@ function api_get_group_id_by_name($thrash1, $thrash2, $other, $thrash3)
$sql = sprintf(
'SELECT id_grupo
FROM tgrupo WHERE nombre = "'.$other['data'].'"'
FROM tgrupo WHERE nombre = "'.$group_id.'"'
);
$group_id = db_get_all_rows_sql($sql);