From 597cc4d7916b5fd6f1836fce1e7290c60fe1dc2f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 11 Jan 2012 19:23:10 +0000 Subject: [PATCH] fixed PHP notice --- lam/lib/modules/posixAccount.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 3885dd02..f7775184 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -1833,7 +1833,6 @@ class posixAccount extends baseModule implements passwordService { $temp['createHomes'] = array(); $temp['counter'] = 0; $col = $ids['posixAccount_additionalGroups']; - $col_gon = $ids['posixAccount_gon']; $col_home = $ids['posixAccount_createHomeDir']; // get list of existing groups $groupList = $this->findGroups(); @@ -1871,8 +1870,8 @@ class posixAccount extends baseModule implements passwordService { $temp['members'][$groups[$g]][] = $data[$i][$ids['posixAccount_userName']]; } } - if ($data[$i][$col_gon] != "") { - $gons = explode(",", $data[$i][$col_gon]); + if (isset($ids['posixAccount_gon']) && ($data[$i][$ids['posixAccount_gon']] != "")) { + $gons = explode(",", $data[$i][$ids['posixAccount_gon']]); $memberAttr = 'member'; for ($g = 0; $g < sizeof($gons); $g++) { if (in_array('groupOfUniqueNames', $gonList[$gonMap[$gons[$g]]]['objectclass'])) {