do not render empty help entries

This commit is contained in:
Roland Gruber 2017-05-20 11:46:26 +02:00
parent d3d6dfc032
commit b57cdea3fc
1 changed files with 3 additions and 0 deletions

View File

@ -888,6 +888,9 @@ class htmlHelpLink extends htmlElement {
} }
// print link // print link
$helpEntry = getHelp($module, $this->helpID, $scope); $helpEntry = getHelp($module, $this->helpID, $scope);
if (empty($helpEntry)) {
return array();
}
printHelpLink($helpEntry, $this->helpID, $module, $scope, $this->cssClasses); printHelpLink($helpEntry, $this->helpID, $module, $scope, $this->cssClasses);
return array(); return array();
} }