Code

Added check for non existing macAddress attribute
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Jun 2005 12:09:55 +0000 (12:09 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Jun 2005 12:09:55 +0000 (12:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@708 594d385d-05f5-0310-b6e9-bd551577e9d8

TODO
plugins/admin/ogroups/class_termgroup.inc

diff --git a/TODO b/TODO
index 57f9fb4b73e6979168625766b6fb6ee8741c808b..9b79364114e8f7b24e14efe63b88ed192ddad41b 100644 (file)
--- 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:
 ===============
index 667e820b9421b083fa592bed3e4da1d5fc0d0213..01d0e0d975ec81cdbe234f87c430cede26a4c17f 100644 (file)
@@ -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]]= "";
+          }
         }
       }
     }