X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_ObjectList.inc;h=a82eef4615a53907ac22da9fa63e8a3fe6437d0c;hb=53083cfa6cd189d552a8d4b983ee9f76aed071fc;hp=f9f7dd3bd6686e5e39795f507dc1ddf0a4523a4a;hpb=945a8817dc959ffb90ab96120a3886a7960a7077;p=gosa.git diff --git a/include/class_ObjectList.inc b/include/class_ObjectList.inc index f9f7dd3bd..a82eef461 100644 --- a/include/class_ObjectList.inc +++ b/include/class_ObjectList.inc @@ -79,7 +79,7 @@ class ObjectList implements IteratorAggregate { ''; # Crap filling - $this->objects= array( + $tmp= array( array("dn" => "cn=1aherbertskiste,ou=workstations,ou=systems,o=Landeshauptstadt München,c=de", "cn" => "1aherbertskiste", @@ -357,6 +357,15 @@ class ObjectList implements IteratorAggregate { "objectClass" => array('gotoWorkstation')) ); + + $tmp2 = array(); + foreach($tmp as $entry){ + $id = uniqid(); + $entry['id']= $id; + $tmp2[] = $entry; + } + + $this->objects = $tmp2; }