summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8268e7)
raw | patch | inline | side by side (parent: e8268e7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Jun 2005 09:39:59 +0000 (09:39 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Jun 2005 09:39:59 +0000 (09:39 +0000) |
plugins/admin/systems/class_servService.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc
index 5343f155d0561b3d8c1fb2a89f2b55fdf63ce366..444df8cf0ae3410562407ef4ab59a24a81847c20 100644 (file)
/* Load arrays */
foreach (array("goTimeSource", "goExportEntry") as $name){
- $this->$name= array();
+ $tmp= array();
if (isset($this->attrs[$name])){
for ($i= 0; $i<$this->attrs[$name]['count']; $i++){
- $this->$name[$this->attrs[$name][$i]]= $this->attrs[$name][$i];
+ $tmp[$this->attrs[$name][$i]]= $this->attrs[$name][$i];
}
}
+ $this->$name= $tmp;
}
/* Always is account... */
/* Save to LDAP */
function save()
{
-
/* Normalize lazy objectclass arrays */
$objectclasses= array();
foreach($this->objectclasses as $oc){
}
}
+ /* Arrays */
+ foreach (array("goTimeSource", "goExportEntry") as $name){
+ $this->attrs[$name]= array();
+ foreach ($this->$name as $element){
+ $this->attrs[$name][]= $element;
+ }
+ }
+
/* Write to LDAP */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);