index 58f6ec4bacad53043b213a7b0a449e5f29f8c13e..a9b67e450c97a5e5a3e9be3c75275da8e03363da 100644 (file)
$this->$oname=$value;
}
}else{
- $this->status = "new";
- $this->orig_cn = false;
+ if(count($object)){
+ $this->orig_cn= $object['cn'];
+ $this->dn=$object['dn'];
+ foreach($object as $name=>$value){
+ $oname = $name;
+ $this->$oname=$value;
+ }
+ }else{
+
+ $this->status = "new";
+ $this->orig_cn = false;
+ }
}
}