From 789e3ea7ffe1d65b967da67aceabef4671ac5abf Mon Sep 17 00:00:00 2001 From: duergner Date: Thu, 27 May 2004 19:07:50 +0000 Subject: [PATCH] everythins should be fixed now and work --- lam/lib/pdf.inc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lam/lib/pdf.inc b/lam/lib/pdf.inc index 36364cf3..e94b1e9b 100644 --- a/lam/lib/pdf.inc +++ b/lam/lib/pdf.inc @@ -139,13 +139,16 @@ function createModulePDF($accounts,$account_type="") { // Get current entry $value_entry = $entries[$name]; - // Loop over all rows of this entry (most of the time this will be just one) - foreach($value_entry as $line) { - // Substitue XML syntax with valid FPDF methods - $methods = processLine($line); - // Call every method - foreach($methods as $method) { - call_user_func_array(array(&$pdf,$method[0]),$method[1]); + // Print entry only when module sumitted values for it + if(is_array($value_entry)) { + // Loop over all rows of this entry (most of the time this will be just one) + foreach($value_entry as $line) { + // Substitue XML syntax with valid FPDF methods + $methods = processLine($line); + // Call every method + foreach($methods as $method) { + call_user_func_array(array(&$pdf,$method[0]),$method[1]); + } } } $key = false;