X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_pluglist.inc;h=42f729db8992deab90bdb9f049bb8ab3fb9a4fc0;hb=f15be1a7b19fb3011c05484627e506a23c1c5d61;hp=4fc989360eb4a70ca4422f4fa40536d2b35cef04;hpb=f7ff2d45457254efcf032427e152dedfc55ad5ff;p=gosa.git diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 4fc989360..42f729db8 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -120,10 +120,17 @@ class pluglist { $plHeadline= $vars['plHeadline']; $plDescription= $vars['plDescription']; + $index= $this->get_index($info['PATH']); $image= get_template_path('images/'.$info['ICON']); $href= "main.php?plug=$index&reset=1"; + if(!$vars){ + $plHeadline = _("Unknown"); + $plDescription = _("Unknown"); + $href= "main.php?reset=1"; + } + if ($this->check_access($info['ACL'])){ $entries= $entries."
\n"; /* Generate icon entry with description */ - $this->menuparts[_($headline)][]= ''._($plHeadline).' '._($plDescription).' |
'._($plHeadline).' '._($plDescription).' |