Code

Updated conference management.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 07:17:10 +0000 (07:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 07:17:10 +0000 (07:17 +0000)
-Fixed undefined index for unknown conference owner.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12889 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_divListConferences.inc

index 70554d531b416e6fd0824ddaea3ed13573b6520a..442f552cf9ceddc67b28fc7f125a85b2906923fe 100644 (file)
@@ -177,7 +177,7 @@ class divListConference extends MultiSelectWindow
 
       /* Get conference owner name */
       $ldap= $this->parent->config->get_ldap_link();
-      $ldap->cat($conference['goFonConferenceOwner'][0], array('cn'));
+      $ldap->cat($conference['goFonConferenceOwner'][0], array('cn','dn'));
       $data = $ldap->fetch();
       if(isset($data['cn'][0])){
         $cn = $data['cn'][0];
@@ -186,7 +186,10 @@ class divListConference extends MultiSelectWindow
       }  
 
       /* Create title */
-      $title = " title='".preg_replace("/ /","&nbsp;",LDAP::fix($data['dn']))."' ";
+      $title="";
+      if(isset($data['dn'])){
+        $title = " title='".preg_replace("/ /","&nbsp;",LDAP::fix($data['dn']))."' ";
+      }
 
       /* Cutted objects should be displayed in light grey */
       $display = $conference['cn'][0].$number;