Code

Fixed helpviewer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Nov 2005 09:18:52 +0000 (09:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Nov 2005 09:18:52 +0000 (09:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2093 594d385d-05f5-0310-b6e9-bd551577e9d8

html/helpviewer.php

index 05f31f494e70b5f15bd3735983daa8f05b370c13..93a3b7d6955c53003a45694ffbd01cd70176479b 100644 (file)
@@ -103,7 +103,7 @@ if(isset($_SESSION['current_class_for_help'])){
   
   /* Generate help array */
   $str = $xml->parse();
-  
+
   /* __LANG__ is used as placeholder for the used language*/
   $helpdir= preg_replace("/__LANG__/i",$lang,$str[($_SESSION['current_class_for_help'])]['PATH']);
 
@@ -125,7 +125,9 @@ if(isset($_SESSION['current_class_for_help'])){
   $helpobject['currentplug']  = $helpdir;
   
   /* Avoid displaying the same help every time */
-  unset($_SESSION['current_class_for_help']);
+  if(isset($_GET['pg'])){
+    unset($_SESSION['current_class_for_help']);
+  }
 
 }elseif(isset($_GET['plug'])){
   /* This displays helpfiles depending on the current $_GET[plug] */