removed PHP notices

This commit is contained in:
Roland Gruber 2008-04-28 17:59:08 +00:00
parent e51c4bba00
commit af38b4989b
1 changed files with 1 additions and 1 deletions

View File

@ -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 . '"';
}