Code

summary added
[gosa.git] / plugins / admin / systems / class_systemManagement.inc
index d66d04314d19bd46d6f429bb51e316fccfb5c89e..4020c6b1a04479b59e130a69fef1a6be6b3a1ff9 100644 (file)
@@ -390,7 +390,7 @@ class systems extends plugin
     if (isset($_POST['edit_finish'])){
 
       /* Check tabs, will feed message array */
-      $message= $this->systab->check(TRUE);
+      $message= $this->systab->check();
 
       /* Save, or display error message? */
       if (count($message) == 0){
@@ -422,8 +422,10 @@ class systems extends plugin
 
     /* Cancel dialogs */
     if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){
-      del_lock ($this->systab->dn);
-      unset ($this->systab);
+      if (isset($this->systab)){
+        del_lock ($this->systab->dn);
+        unset ($this->systab);
+      }
       $this->systab= NULL;
       unset($_SESSION['objectinfo']);
     }