From afa7e8b8a3a4785e3bf17991efd0a976e2a8890e Mon Sep 17 00:00:00 2001 From: duergner Date: Wed, 8 Sep 2004 17:41:35 +0000 Subject: [PATCH] changed some little things in data handling; --- lam/templates/help.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lam/templates/help.php b/lam/templates/help.php index fdf3f951..608fd7c9 100644 --- a/lam/templates/help.php +++ b/lam/templates/help.php @@ -84,7 +84,7 @@ function displayHelp($helpEntry,$helpVariables) { } /* If no help number was submitted print error message */ -if(!isset($_GET['HelpNumber'])) +if(!isset($_GET['item'])) { $errorMessage = _("Sorry no help number submitted."); echoHTMLHead(); @@ -95,9 +95,19 @@ if(!isset($_GET['HelpNumber'])) $helpEntry = array(); -if(isset($_GET['Module'])) { +if(isset($_GET['module'])) { include_once("../lib/modules.inc"); - $helpEntry = getHelp($_GET['Module'],$_GET['HelpNumber']); + $helpEntry = getHelp($_GET['module'],$_GET['item']); + if(!$helpEntry) { + $variables = array(); + array_push($variables,$_GET['item']); + array_push($variables,$_GET['module']); + $errorMessage = _("Sorry this help id ({bold}%s{endbold}) is not available for this module ({bold}%s{endbold})."); + echoHTMLHead(); + statusMessage("ERROR","",$errorMessage,$variables); + echoHTMLFoot(); + exit; + } } else { /* If submitted help number is not in help/help.inc print error message */