fix syntax error

This commit is contained in:
Uwe Steinmann 2019-10-19 08:27:38 +02:00
parent 0208d54409
commit da5fed3591
3 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style {
if($arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
} else {
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $version->getAttribute($attrdef)));
@ -72,7 +72,7 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));

View File

@ -162,7 +162,7 @@ $(document).ready( function() {
if($arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
} else {
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $document->getAttribute($attrdef)));
@ -174,7 +174,7 @@ $(document).ready( function() {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));

View File

@ -117,7 +117,7 @@ $(document).ready(function() {
if($arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
} else {
$this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $folder->getAttribute($attrdef)));
@ -129,7 +129,7 @@ $(document).ready(function() {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr) {
} elseif(is_string($arr)) {
echo $arr;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));