From: hickert Date: Wed, 5 Apr 2006 07:34:11 +0000 (+0000) Subject: Added check for missing release, set image style to center X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f603e16e0fc3fb51ebad95f0063b149f0e732472;p=gosa.git Added check for missing release, set image style to center git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2985 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 95813c657..246945aff 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -551,15 +551,15 @@ class appgroup extends plugin } foreach($departments as $key => $app){ $div->AddEntry(array( - array("string"=>""._("department")." ".sprintf($linkopen,base64_encode($key),$app), + array("string"=>""._("department")." ".sprintf($linkopen,base64_encode($key),$app), "attach"=>"style='border:0px;'") )); } foreach($apps as $key => $app){ $div->AddEntry(array( - array("string"=>sprintf("",$key). - ""._("application")." ".sprintf($linkadd,$key,$app), + array("string"=>sprintf("",$key). + ""._("application")." ".sprintf($linkadd,$key,$app), "attach"=>"style='border:0px;'") )); } @@ -589,9 +589,9 @@ class appgroup extends plugin $div2 = new DivSelectBox("appgroup"); $div2->SetHeight(400); - $linkopen = "\"\" %s"; + $linkopen = "\"\" %s"; $catremove = " "; - $app = "\"\" %s"; + $app = "\"\" %s"; $catupdown = " \"\"  @@ -801,7 +801,17 @@ $ldap->modify ($this->attrs); $this->enableReleaseManagement = true; $tmp = array_flip($this->getReleases()); - $base = $tmp[$this->Release]; + if(isset($tmp[$this->Release])){ + $base = $tmp[$this->Release]; + }else{ + + $k = key($tmp); + $r = $tmp[$k]; + + print_red(sprintf(_("Can't resolve the release name '%s', setting release name to '%s'. "),$this->Release,$k)); + $this->Release = $k; + $base = $r; + } $base = preg_replace("/ou=apps,.*$/","ou=apps,".$this->curbase,$base);