From cb5c71b23a1cd1624d5b085e482a8b4498d8c79b Mon Sep 17 00:00:00 2001 From: duergner Date: Fri, 28 May 2004 09:43:17 +0000 Subject: [PATCH] corrected some last bugs --- lam/config/pdf-structure.xml | 6 +++--- lam/lib/pdf.inc | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lam/config/pdf-structure.xml b/lam/config/pdf-structure.xml index ab9725c4..8d71e638 100644 --- a/lam/config/pdf-structure.xml +++ b/lam/config/pdf-structure.xml @@ -1,5 +1,5 @@ - +
@@ -37,7 +37,7 @@
- +
@@ -47,7 +47,7 @@
- +
diff --git a/lam/lib/pdf.inc b/lam/lib/pdf.inc index e94b1e9b..f7eeb75d 100644 --- a/lam/lib/pdf.inc +++ b/lam/lib/pdf.inc @@ -174,7 +174,11 @@ function createModulePDF($accounts,$account_type="") { function getStructure($account_type = array("user","group","host")) { $parser = new xmlParser(); - $xml = $parser->parse($_SESSION['lam_path'] . '/config/pdf-structure.xml'); + $xml = $parser->parse($_SESSION['lampath'] . '/config/pdf-structure.xml'); + + // Don't know why this is needed but without the array pointer seems to + // be at the last element and therefor the while loop fails. + reset($account_type); $border = array(); $structure = array(); while(($current = current($account_type)) != null) {