From ba47349e319a9f815bff59e63aad6eb168ffd4fa Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 14 Jun 2005 12:09:55 +0000 Subject: [PATCH] Added check for non existing macAddress attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@708 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 2 +- plugins/admin/ogroups/class_termgroup.inc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 57f9fb4b7..9b7936411 100644 --- a/TODO +++ b/TODO @@ -6,7 +6,7 @@ Things to fix before 2.4: - shared folders - Kolab disabled -> check. Check is_account! -* uid not defined when adding new posix users +* Check why the group is doppelt belegt Target for 2.5: =============== diff --git a/plugins/admin/ogroups/class_termgroup.inc b/plugins/admin/ogroups/class_termgroup.inc index 667e820b9..01d0e0d97 100644 --- a/plugins/admin/ogroups/class_termgroup.inc +++ b/plugins/admin/ogroups/class_termgroup.inc @@ -23,7 +23,11 @@ class termgroup extends plugin $attrs = $ldap->fetch(); if (in_array("gotoTerminal", $attrs['objectClass']) || in_array("gotoWorkstation", $attrs['objectClass'])){ - $this->members[$attrs['cn'][0]]= $attrs['macAddress'][0]; + if (isset($attrs['macAddress'])){ + $this->members[$attrs['cn'][0]]= $attrs['macAddress'][0]; + } else { + $this->members[$attrs['cn'][0]]= ""; + } } } } -- 2.30.2