summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64f8083)
raw | patch | inline | side by side (parent: 64f8083)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Jul 2006 10:45:18 +0000 (10:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Jul 2006 10:45:18 +0000 (10:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4233 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 026870745045561d315779439ca3aa382b05e50f..2f1ccd595bf2611f4d980746ddf001856b322a7b 100644 (file)
if($ldap->count()){
$attrs = $ldap->fetch();
-
+ $name = $attrs[$var][0];
+
/* Check if this uid/cn is already assigned to any permission */
foreach($types as $ctype){
- if($type == $ctype) continue;
-
- if(in_array($attrs[$var][0],$this->member[$ctype])){
- print_red(sprintf(_("Can't add '%s' to members it is already used in another category."),$attrs[$var][0]));
+ if(isset( $this->member[$ctype][$name])){
+ print_red(sprintf(_("Can't add '%s' to the list of members, it is already used."),$attrs[$var][0]));
return;
}
}