summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09fde13)
raw | patch | inline | side by side (parent: 09fde13)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 08:47:24 +0000 (08:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 08:47:24 +0000 (08:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2286 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servRepository.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index c1fd41eeacba32662de4ebd9d11e889998e14453..c6d54f13a82f70b0bfdee0ab6d5b2cdf1d1060ab 100644 (file)
$tmp2 = array();
$tmp3 = array();
- $tmp2['ParentServer'] = $tmp[1];
- if(empty($tmp[1])){
+ if(isset($tmp[1])){
+ $tmp2['ParentServer'] = $tmp[1];
+ if(empty($tmp[1])){
+ $tmp2['ParentServer'] = "none";
+ }
+ }else{
$tmp2['ParentServer'] = "none";
}
- $tmp2['Url'] = $tmp[0];
- $tmp2['Release'] = $tmp[2];
- $tmp3 = split(",",$tmp[3]);
+ if(isset($tmp[0])){
+ $tmp2['Url'] = $tmp[0];
+ }else{
+ $tmp2['Url'] = "";
+ }
+
+ if(isset($tmp[2])){
+ $tmp2['Release'] = $tmp[2];
+ }else{
+ $tmp2['Release'] = "";
+ }
+
+ if(isset($tmp[3])){
+ $tmp3 = split(",",$tmp[3]);
+ foreach($tmp3 as $sec){
+ $tmp2['Sections'][$sec]=$sec;
+ }
+ }else{
+ $tmp['Section']=array();
+ }
- foreach($tmp3 as $sec){
- $tmp2['Sections'][$sec]=$sec;
- }
$this->repositories[$tmp[2]]=$tmp2;
}
}
$link = "<a href='?plug=".$_GET['plug']."&act=open&id=%s'>%s</a>";
$edit = "<input type='image' value='%s' name='edit_%s' src='images/edit.png'> ";
$delete = "<input type='image' value='%s' name='delete_%s' src='images/edittrash.png'>";
-
+
+ if(count($this->repositories)==0){
+ $divlist->AddEntry(array(
+ array("string"=>" ","attach"=>"style='width:80px;'"),
+ array("string"=>" "),
+ array("string"=>" ","attach"=>"style='border-right:0px;width:50px;text-align:right;'")
+ ));
+ }
+
foreach($this->repositories as $name => $reps){
$str = " ";