diff --git a/views/bootstrap/class.EditAttributes.php b/views/bootstrap/class.EditAttributes.php index 58f6c1263..c5a7b052c 100644 --- a/views/bootstrap/class.EditAttributes.php +++ b/views/bootstrap/class.EditAttributes.php @@ -70,26 +70,27 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style { if(!in_array($attrdef->getID(), $attrdefids)) { $arr = $this->callHook('folderEditAttribute', $folder, $attrdef); if(is_array($arr)) { - echo $txt; - echo ""; - echo "".$arr[0].""; - echo "".$arr[1].""; - echo ""; + if($arr) { + echo "
".$arr[0].""; + echo "
".$arr[1]."
"; + echo "
"; + } } else { ?> - - getName()); ?>: - printAttributeEditField($attrdef, $version->getAttribute($attrdef)) ?> - +
+ +
printAttributeEditField($attrdef, $version->getAttribute($attrdef)) ?>
+
getID(); } else { ?> - - getName()); ?> - getAttribute($attrdef)->getValue(); ?> - +
+ +
getAttribute($attrdef)->getValue(); ?>
+
getAttribute($attrdef)) { ?> - - getName()); ?> - getValue() ?> - +
+ +
getValue() ?>
+