Code

Fixes for password setting methods that call unused object
[gosa.git] / plugins / admin / systems / class_systemManagement.inc
index 7962a9db167d6dd981e5541d93bea55255252f65..4020c6b1a04479b59e130a69fef1a6be6b3a1ff9 100644 (file)
@@ -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']);
     }