propperly check for return value of addXXXAttributes

This commit is contained in:
Uwe Steinmann 2020-07-21 07:29:53 +02:00
parent 55f5fe4047
commit e94631bbde
3 changed files with 5 additions and 5 deletions

View File

@ -72,8 +72,8 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr)) {
echo $arr;
} elseif(is_string($arrs)) {
echo $arrs;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
?>

View File

@ -228,8 +228,8 @@ $(document).ready( function() {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arr)) {
echo $arr;
} elseif(is_string($arrs)) {
echo $arrs;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
?>

View File

@ -130,7 +130,7 @@ $(document).ready(function() {
$this->formField($arr[0], $arr[1]);
}
} elseif(is_string($arrs)) {
echo $arr;
echo $arrs;
}
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
?>