diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index 5cd066577f8d93129cf50512a8d4cac231f5be24..843b5452e9a8110ed9293a1ad03a0368a3db1f61 100644 (file)
$this->by_object['workstartup']->remove_from_parent();
unset($this->by_object['workstartup']);
unset($this->by_name['workstartup']);
- $this->by_object['faiSummary']->remove_from_parent();
- unset($this->by_object['faiSummary']);
- unset($this->by_name['faiSummary']);
+ if (isset($this->by_object['faiSummary'])){
+ $this->by_object['faiSummary']->remove_from_parent();
+ unset($this->by_object['faiSummary']);
+ unset($this->by_name['faiSummary']);
+ }
}
}
case "U":
/* Append a PhoneQueue, if objectClass = goFonAccount */
$use = false;
- foreach($this->by_object['ogroup']->memberList as $dn => $val){
- $obj = $this->by_object['ogroup']->objcache[$dn];
-
- if(isset($obj['objectClass'])){
- if(in_array("goFonAccount",$obj['objectClass'])){
- $use = true;
+ /* We found goFonAccount in users objectClasses*/
+ if(class_available("phonequeue")){
+ foreach($this->by_object['ogroup']->memberList as $dn => $val){
+
+ $obj = $this->by_object['ogroup']->objcache[$dn];
+
+ if(isset($obj['objectClass'])){
+ if(in_array("goFonAccount",$obj['objectClass'])){
+ $use = true;
+ }
}
}
- }
- /* We found goFonAccount in users objectClasses*/
- if(class_available("phonequeue")){
if($use){
$this->by_name['phonequeue']= _("Phone queue");
$this->by_object['phonequeue']= new phonequeue($this->config, $this->dn);