Fix api group_id_by_name with url enconde separator

This commit is contained in:
Calvo 2021-09-06 18:13:14 +02:00
parent 42d8bb6003
commit 62775e0dae
1 changed files with 6 additions and 0 deletions

View File

@ -16733,6 +16733,12 @@ function api_get_group_id_by_name($thrash1, $thrash2, $other, $thrash3)
return;
}
if (is_array($other) === true) {
$group_id = $other['data'][0];
} else {
$group_id = $other['data'];
}
$sql = sprintf(
'SELECT id_grupo
FROM tgrupo WHERE nombre = "'.$other['data'].'"'