From 53531cb5f567b6051e737c86b57a504a2dce60c7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 11 Jul 2017 16:35:49 +0200 Subject: [PATCH] use propper html tags --- views/bootstrap/class.EditAttributes.php | 35 ++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) 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() ?>
+