Code

Fixed undefined index error
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index 134aeaa8920bbcbc65bd7504ffa9392a684f00a5..bd6617025b7cbf91a12b499f677bf5603e284c5c 100644 (file)
@@ -309,7 +309,7 @@ class ogroupManagement extends plugin
      ****************/
 
     /* Cancel dialogs */
-    if (isset($_POST['edit_cancel'])){
+    if ((isset($_POST['edit_cancel'])) && (isset($this->ogroup->dn))){
       del_lock ($this->ogroup->dn);
       unset ($this->ogroup);
       $this->ogroup= NULL;