Code

Fixed Translation Strings.
[gosa.git] / plugins / admin / systems / class_glpiAccount.inc
index 1ea5cab2ca06c1c369fd89da63aae805b7b730b0..94e703c4998e369642d665d91e96f982ce2af250 100644 (file)
@@ -724,8 +724,10 @@ class glpiAccount extends plugin
       $attrs['name'] = $this->dn;
       unset($attrs['ID']);
       $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']);
+
+      /* check if we have to update, add */
       if($this->initialy_was_account&&$this->is_account){
-        $this->handle->updateComputerInformations($attrs,$this->dn);
+        $this->handle->updateComputerInformations($attrs,$this->orig_dn);
       }elseif($this->is_account){
         $this->handle->addComputerInformations($attrs,$this->dn);
       }