index 6664bce7e02a2d61f80f24bc4a44433841573735..1e2c75fb50e87bcba273027849ead9c4112d5362 100644 (file)
*/
$usePhoneTab = false;
foreach($this->by_object['ogroup']->memberList as $dn => $val){
- if(isset($val['objectClass'])){
- if(in_array("goFonAccount",$val['objectClass'])){
+
+ $obj = $this->by_object['ogroup']->objcache[$dn];
+ if(isset($obj['objectClass'])){
+ if(in_array("goFonAccount",$obj['objectClass'])){
$usePhoneTab = true;
}
}
*/
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'])){
+
+ $obj = $this->by_object['ogroup']->objcache[$dn];
+
+ if(isset($obj['objectClass'])){
+ if(in_array("goFonAccount",$obj['objectClass'])){
require_once("class_phonequeue.inc");
$this->by_name['phonequeue']= _("Phone queue");
$this->by_object['phonequeue']= new phonequeue($this->config, $this->dn);
$this->by_object['phonequeue']->parent= &$this;
+ break;
}
}
}
/* Insert extra tabs for several object types - if present */
$objects= preg_replace('/[\[\]]/', '', $this->by_object['ogroup']->gosaGroupObjects);
-
+
for ($n= 0; $n<strlen($objects); $n++){
switch ($objects[$n]){
case "T":
/* Append a PhoneQueue, if objectClass = goFonAccount */
$use = false;
foreach($this->by_object['ogroup']->memberList as $dn => $val){
- if(isset($val['objectClass'])){
- if(in_array("goFonAccount",$val['objectClass'])){
+
+ $obj = $this->by_object['ogroup']->objcache[$dn];
+
+ if(isset($obj['objectClass'])){
+ if(in_array("goFonAccount",$obj['objectClass'])){
$use = true;
}
}
$this->by_name['phonequeue']= _("Phone queue");
$this->by_object['phonequeue']= new phonequeue($this->config, $this->dn);
$this->by_object['phonequeue']->parent= &$this;
-
}
/* Add a user tab used for mail distribution lists */