summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1738aac)
raw | patch | inline | side by side (parent: 1738aac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Dec 2006 08:00:38 +0000 (08:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Dec 2006 08:00:38 +0000 (08:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5444 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/tabs_ogroups.inc | patch | blob | history |
index 89bcd1b9eb307c9129c866c4f800d64d3e79d47f..d0659618d68230ddc83ebc75b9292e4fb2867a00 100644 (file)
* 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;
}
}
/* 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);
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;
}
}