From 0f7a864415d0d3e9249c104f9c32a2469260463f Mon Sep 17 00:00:00 2001 From: duergner Date: Sat, 17 Apr 2004 10:47:46 +0000 Subject: [PATCH] Bug in line 75 cleared when no SeeAlso is specified --- lam/templates/help.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lam/templates/help.php b/lam/templates/help.php index 28e6ea10..fdf3f951 100644 --- a/lam/templates/help.php +++ b/lam/templates/help.php @@ -72,10 +72,12 @@ function displayHelp($helpEntry,$helpVariables) { $format = "

" . $helpEntry['Text'] . "

\n"; array_unshift($helpVariables,$format); call_user_func_array("printf",$helpVariables); - while($current = current($helpEntry["SeeAlso"])) - { - echo '

' . (( isset($current['link'])) ? '' : '') . _('See also') . ': ' . $current['text'] . (( isset($current['link'])) ? '' : '') . '

\n'; - next($helpEntry["SeeAlso"]); + if(is_array($helpArray['SeeAlso'])) { + while($current = current($helpEntry["SeeAlso"])) + { + echo '

' . (( isset($current['link'])) ? '' : '') . _('See also') . ': ' . $current['text'] . (( isset($current['link'])) ? '' : '') . '

\n'; + next($helpEntry["SeeAlso"]); + } } echoHTMLFoot(); }