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,11 +72,13 @@ function displayHelp($helpEntry,$helpVariables) {
$format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n"; $format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n";
array_unshift($helpVariables,$format); array_unshift($helpVariables,$format);
call_user_func_array("printf",$helpVariables); call_user_func_array("printf",$helpVariables);
if(is_array($helpArray['SeeAlso'])) {
while($current = current($helpEntry["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'; 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"]); next($helpEntry["SeeAlso"]);
} }
}
echoHTMLFoot(); echoHTMLFoot();
} }
} }