Bug in line 75 cleared when no SeeAlso is specified

This commit is contained in:
duergner 2004-04-17 10:47:46 +00:00
parent eed79d5fde
commit 0f7a864415
1 changed files with 6 additions and 4 deletions

View File

@ -72,10 +72,12 @@ function displayHelp($helpEntry,$helpVariables) {
$format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n";
array_unshift($helpVariables,$format);
call_user_func_array("printf",$helpVariables);
while($current = current($helpEntry["SeeAlso"]))
{
echo ' <p class="help">' . (( isset($current['link'])) ? '<a class="helpSeeAlso" href="' . $current['link'] . '">' : '') . _('See also') . ': ' . $current['text'] . (( isset($current['link'])) ? '</a>' : '') . '</p>\n';
next($helpEntry["SeeAlso"]);
if(is_array($helpArray['SeeAlso'])) {
while($current = current($helpEntry["SeeAlso"]))
{
echo ' <p class="help">' . (( isset($current['link'])) ? '<a class="helpSeeAlso" href="' . $current['link'] . '">' : '') . _('See also') . ': ' . $current['text'] . (( isset($current['link'])) ? '</a>' : '') . '</p>\n';
next($helpEntry["SeeAlso"]);
}
}
echoHTMLFoot();
}