Code

Followup patch for #3305
[gosa.git] / trunk / gosa-core / plugins / admin / ogroups / tabs_ogroups.inc
index 3794fc6e24e44fc79230803eb0ee6207bf3f138c..f5b777db6ac7378446dce4fd4a27ec85133fda1d 100644 (file)
@@ -380,11 +380,8 @@ class ogrouptabs extends tabs
       $this->dn= 'cn='.$baseobject->cn.','.get_ou('ogroupRDN').$baseobject->base;
     }
 
-    /* Only delete attributes if there are members left */
-    if (count($this->by_object['ogroup']->memberList) != 0) {
-      foreach(array_keys($this->to_remove) as $object) {
-        $this->to_remove[$object]->remove_from_parent();
-      }
+    foreach(array_keys($this->to_remove) as $object) {
+      $this->to_remove[$object]->remove_from_parent();
     }
     tabs::save();
   }