Fixed that blank group is selectable when group access restricted users

create custom report.
This commit is contained in:
Junichi Satoh 2015-10-06 12:05:18 +09:00
parent ecaa865585
commit eb8d2c786d
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ $write_groups = users_get_groups_for_select(false, "RW",
users_can_manage_group_all(), true, false, 'id_grupo');
// If the report group is not among the RW groups (special permission) we add it
if (!isset($write_groups[$idGroupReport])) {
if (!isset($write_groups[$idGroupReport]) && $idGroupReport) {
$write_groups[$idGroupReport] = groups_get_name($idGroupReport);
}