Minor fix

This commit is contained in:
Alejandro Gallardo Escobar 2015-03-05 19:45:30 +01:00
parent a68512ae0c
commit bf70b9bfba
1 changed files with 3 additions and 6 deletions

View File

@ -616,12 +616,9 @@ function tags_get_acl_tags($id_user, $id_group, $access = 'AR', $return_mode = '
}
}
if ((int)$id_group === 0) {
$id_group = array_keys(users_get_groups($id_user, $access, false));
if (empty($id_group)) {
return ERR_WRONG_PARAMETERS;
}$id_group = array();
if ($id_group == 0) {
// Don't filter
$id_group = array();
}
elseif (empty($id_group)) {
return ERR_WRONG_PARAMETERS;