From 04fafbcca70e530ab5aad86b6a2de4b393b45e8f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Nov 2008 07:17:10 +0000 Subject: [PATCH] Updated conference management. -Fixed undefined index for unknown conference owner. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12889 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/gofon/conference/class_divListConferences.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/gofon/gofon/conference/class_divListConferences.inc b/gosa-plugins/gofon/gofon/conference/class_divListConferences.inc index 70554d531..442f552cf 100644 --- a/gosa-plugins/gofon/gofon/conference/class_divListConferences.inc +++ b/gosa-plugins/gofon/gofon/conference/class_divListConferences.inc @@ -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("/ /"," ",LDAP::fix($data['dn']))."' "; + $title=""; + if(isset($data['dn'])){ + $title = " title='".preg_replace("/ /"," ",LDAP::fix($data['dn']))."' "; + } /* Cutted objects should be displayed in light grey */ $display = $conference['cn'][0].$number; -- 2.30.2