From af38b4989ba672aee7a5d8cc23f08523c7f4b4b8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 28 Apr 2008 17:59:08 +0000 Subject: [PATCH] removed PHP notices --- lam/lib/pdfstruct.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/pdfstruct.inc b/lam/lib/pdfstruct.inc index e3b8054d..0c36aebd 100644 --- a/lam/lib/pdfstruct.inc +++ b/lam/lib/pdfstruct.inc @@ -120,7 +120,7 @@ function savePDFStructureDefinitions($scope,$definition) { $ident .= "\t"; } $attributes = ''; - if(is_array($entry['attributes'])) { + if(isset($entry['attributes']) && is_array($entry['attributes'])) { foreach($entry['attributes'] as $key => $value) { $attributes .= ' ' . strtolower($key) . '="' . $value . '"'; }