summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8cb0e26)
raw | patch | inline | side by side (parent: 8cb0e26)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Mar 2006 11:06:57 +0000 (11:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Mar 2006 11:06:57 +0000 (11:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2831 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 0fcc62b1df9ad0fddf68fecb5d00d0e6fa78a918..4e235a6c8e0a9a6fecdf5e2a93d7171cfd702a7f 100644 (file)
$ldap->cd($this->config->current['BASE']);
$ldap->search("(&(objectClass=gosaAccount)(uid=".$value."))",array("uid", "sn","givenName"));
$attrs = $ldap->fetch();
-
- if (isset($attrs["givenName"][0]) && isset($attrs["sn"][0])){
- $this->allusers[$attrs["uid"][0]]= $attrs["sn"][0].", ".
- $attrs["givenName"][0]." [".$attrs["uid"][0]."]";
- } else {
- $this->allusers[$attrs["uid"][0]]= $attrs['uid'][0];
- }
- if (isset($this->allusers[$value])){
- $this->members[$value]= $this->allusers[$value];
- } else {
- $this->members[$value] = "[".$value."]";
+
+ if(!$attrs){
+ $this->members[$value] = _("! unknown id")." [".$value."]";
+ }else{
+
+ if (isset($attrs["givenName"][0]) && isset($attrs["sn"][0])){
+ $this->allusers[$attrs["uid"][0]]= $attrs["sn"][0].", ".
+ $attrs["givenName"][0]." [".$attrs["uid"][0]."]";
+ } else {
+ $this->allusers[$attrs["uid"][0]]= $attrs['uid'][0];
+ }
+ if (isset($this->allusers[$value])){
+ $this->members[$value]= $this->allusers[$value];
+ } else {
+ $this->members[$value] = "[".$value."]";
+ }
}
}
}