From b40f4dfadbf2603c4c1fb5d5bab3a7f44c0dfd17 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 9 Jun 2005 13:55:09 +0000 Subject: [PATCH] fixed some errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@632 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/helpviewer.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/html/helpviewer.php b/html/helpviewer.php index 68c0c4bd1..c37153fa5 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -71,7 +71,7 @@ My PART ^^ ################## */ -//set_error_handler("myone"); +set_error_handler("myone"); $helpdir = "../doc/guide/admin/en/manual_gosa_en/"; // Folder to use for help files $defaultpage = "index.html"; // alternative file, shown on error, or on first call $prefix = "node"; // Prefix of the generated help files @@ -156,6 +156,11 @@ if(isset($_POST['search'])){ }else{ /* present last searched word(s)*/ + if(!isset($_SESSION['search_string'])){ + $_SESSION['search_string']=""; + } + + $smarty->assign("search_string",$_SESSION['search_string']); /* Read all files, prepare to serach */ @@ -164,6 +169,8 @@ if(isset($_POST['search'])){ /* Get transmitted page */ if(isset($_GET['pg'])){ $page = $_GET['pg']; + }else{ + $page = $defaultpage; } /* test if this page exists, in our array of files */ -- 2.30.2