From 63c456cf6f9a5459a99ec8780d6a49aef328eb92 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 7 Feb 2006 12:53:02 +0000 Subject: [PATCH] Fixed mail tab removement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2635 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/tabs_ogroups.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 */ -- 2.30.2