From: hickert Date: Wed, 20 Dec 2006 08:00:38 +0000 (+0000) Subject: Fixed problem with missing queue tab. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=132df1c58a2d3accc3a22bea0c4ca2c577628a6c;p=gosa.git Fixed problem with missing queue tab. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5444 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/tabs_ogroups.inc b/plugins/admin/ogroups/tabs_ogroups.inc index 89bcd1b9e..d0659618d 100644 --- a/plugins/admin/ogroups/tabs_ogroups.inc +++ b/plugins/admin/ogroups/tabs_ogroups.inc @@ -11,9 +11,10 @@ class ogrouptabs extends tabs * but there is no user left with goPhoneAccount ... remove it. */ $usePhoneTab = false; + $o_cache = $this->by_object['ogroup']->objcache; foreach($this->by_object['ogroup']->memberList as $dn => $val){ - if(isset($val['objectClass'])){ - if(in_array("goFonAccount",$val['objectClass'])){ + if(isset($o_cache[$dn]['objectClass'])){ + if(in_array("goFonAccount",$o_cache[$dn]['objectClass'])){ $usePhoneTab = true; } } @@ -53,10 +54,11 @@ class ogrouptabs extends tabs /* Create goPhoneAccount if theres an user with goPhoneAccount * but only if there is currently no queue enabled. */ + $o_cache = $this->by_object['ogroup']->objcache; if(!isset($this->by_object['phonequeue'])){ foreach($this->by_object['ogroup']->memberList as $dn => $val){ - if(isset($val['objectClass'])){ - if(in_array("goFonAccount",$val['objectClass'])){ + if(isset($o_cache[$dn]['objectClass'])){ + if(in_array("goFonAccount",$o_cache[$dn]['objectClass'])){ require_once("class_phonequeue.inc"); $this->by_name['phonequeue']= _("Phone queue"); $this->by_object['phonequeue']= new phonequeue($this->config, $this->dn); @@ -151,9 +153,10 @@ class ogrouptabs extends tabs case "U": /* Append a PhoneQueue, if objectClass = goFonAccount */ $use = false; + $o_cache = $this->by_object['ogroup']->objcache; foreach($this->by_object['ogroup']->memberList as $dn => $val){ - if(isset($val['objectClass'])){ - if(in_array("goFonAccount",$val['objectClass'])){ + if(isset($o_cache[$dn]['objectClass'])){ + if(in_array("goFonAccount",$o_cache[$dn]['objectClass'])){ $use = true; } }