fixed PHP notice

This commit is contained in:
Roland Gruber 2012-01-11 19:23:10 +00:00
parent 23e34081fe
commit 597cc4d791
1 changed files with 2 additions and 3 deletions

View File

@ -1833,7 +1833,6 @@ class posixAccount extends baseModule implements passwordService {
$temp['createHomes'] = array(); $temp['createHomes'] = array();
$temp['counter'] = 0; $temp['counter'] = 0;
$col = $ids['posixAccount_additionalGroups']; $col = $ids['posixAccount_additionalGroups'];
$col_gon = $ids['posixAccount_gon'];
$col_home = $ids['posixAccount_createHomeDir']; $col_home = $ids['posixAccount_createHomeDir'];
// get list of existing groups // get list of existing groups
$groupList = $this->findGroups(); $groupList = $this->findGroups();
@ -1871,8 +1870,8 @@ class posixAccount extends baseModule implements passwordService {
$temp['members'][$groups[$g]][] = $data[$i][$ids['posixAccount_userName']]; $temp['members'][$groups[$g]][] = $data[$i][$ids['posixAccount_userName']];
} }
} }
if ($data[$i][$col_gon] != "") { if (isset($ids['posixAccount_gon']) && ($data[$i][$ids['posixAccount_gon']] != "")) {
$gons = explode(",", $data[$i][$col_gon]); $gons = explode(",", $data[$i][$ids['posixAccount_gon']]);
$memberAttr = 'member'; $memberAttr = 'member';
for ($g = 0; $g < sizeof($gons); $g++) { for ($g = 0; $g < sizeof($gons); $g++) {
if (in_array('groupOfUniqueNames', $gonList[$gonMap[$gons[$g]]]['objectclass'])) { if (in_array('groupOfUniqueNames', $gonList[$gonMap[$gons[$g]]]['objectclass'])) {