From: hickert Date: Tue, 7 Feb 2006 12:53:02 +0000 (+0000) Subject: Fixed mail tab removement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=63c456cf6f9a5459a99ec8780d6a49aef328eb92;p=gosa.git Fixed mail tab removement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2635 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/tabs_ogroups.inc b/plugins/admin/ogroups/tabs_ogroups.inc index 138d86e34..3e4979224 100644 --- a/plugins/admin/ogroups/tabs_ogroups.inc +++ b/plugins/admin/ogroups/tabs_ogroups.inc @@ -23,12 +23,11 @@ class ogrouptabs extends tabs unset($this->by_object['phonequeue']); unset($this->by_name['phonequeue']); } - /* Remove mail group if there is no user anymore */ - if((!preg_match("/U/",$objects))&&(isset($this->by_object['mailgroup']))){ - $this->by_object['mailgroup']->remove_from_parent(); - unset($this->by_object['mailgroup']); - unset($this->by_name['mailgroup']); + if((!preg_match("/U/",$objects))&&(isset($this->by_object['mailogroup']))){ + $this->by_object['mailogroup']->remove_from_parent(); + unset($this->by_object['mailogroup']); + unset($this->by_name['mailogroup']); } /* Remove terminal group, if theres no terminal left in the object list */