From: hickert {$name}
{t}If you need assistance with this interface, please contact your administrative contact{/t}:
-
{foreach from=$managers item=item}
+
diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc
index eb6519bed..129c38967 100644
--- a/gosa-core/plugins/generic/infoPage/class_infoPage.inc
+++ b/gosa-core/plugins/generic/infoPage/class_infoPage.inc
@@ -45,38 +45,50 @@ class infoPage extends plugin
function detectManagers()
{
+
+ // Check if we've an own manager set
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cd($this->config->current['BASE']);
+ $ldap->cat($this->dn, array('manager'));
+ $attrs = $ldap->fetch();
+ $dns = array();
+ if(isset($attrs['manager'][0])){
+ $dns['PERSONAL'] = $attrs['manager'][0];
+ }
+
+ // Get next department manager dn
$dn = $this->dn;
$max = 10;
- $dns = array();
- $dns[] = $dn;
while(strlen($dn) >= strlen($this->config->current['BASE']) && $max){
$dn = preg_replace("/^[^,]+,/","",$dn);
- $dns[] = $dn;
$max --;
- }
- $ldap = $this->config->get_ldap_link();
- $ldap->cd($this->config->current['BASE']);
- $managers = array();
- foreach($dns as $dn){
$ldap->cat($dn, array('manager'));
$attrs = $ldap->fetch();
- if(isset($attrs['manager'])){
- $ldap->cat($attrs['manager'][0], array('sn','givenName','mail','telephoneNumber'));
- $managers[$dn] = $ldap->fetch();
- $name = $phone = $mail = "";
- $name = "".set_post($managers[$dn]['sn'][0]).", ".set_post($managers[$dn]['givenName'][0])."";
- if(isset($managers[$dn]['mail'][0])){
- $mail = "{$phone}{$mail}
{$name}