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) {