From 0c4c2c4cf62d20452e15f8b68f592ab798930d2c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 29 Dec 2013 10:31:40 +0000 Subject: [PATCH] performance fix --- lam/lib/modules.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index a8966d09..ab6b2381 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -361,11 +361,12 @@ function checkConfigOptions($scopes, &$options) { * @return array help entry */ function getHelp($module,$helpID,$scope='') { + global $helpArray; if (!isset($module) || ($module == '') || ($module == 'main')) { $helpPath = "../help/help.inc"; if (is_file("../../help/help.inc")) $helpPath = "../../help/help.inc"; if (!isset($helpArray)) { - include($helpPath); + include_once($helpPath); } return $helpArray[$helpID]; } @@ -658,7 +659,7 @@ function printHelpLink($entry, $number, $module='', $scope='') { $title = htmlspecialchars($title); echo ""; - echo "\"""; + echo "\"""; echo ""; }