mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
propperly check for return value of addXXXAttributes
This commit is contained in:
parent
55f5fe4047
commit
e94631bbde
|
@ -72,8 +72,8 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style {
|
||||||
foreach($arrs as $arr) {
|
foreach($arrs as $arr) {
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1]);
|
||||||
}
|
}
|
||||||
} elseif(is_string($arr)) {
|
} elseif(is_string($arrs)) {
|
||||||
echo $arr;
|
echo $arrs;
|
||||||
}
|
}
|
||||||
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -228,8 +228,8 @@ $(document).ready( function() {
|
||||||
foreach($arrs as $arr) {
|
foreach($arrs as $arr) {
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1]);
|
||||||
}
|
}
|
||||||
} elseif(is_string($arr)) {
|
} elseif(is_string($arrs)) {
|
||||||
echo $arr;
|
echo $arrs;
|
||||||
}
|
}
|
||||||
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -130,7 +130,7 @@ $(document).ready(function() {
|
||||||
$this->formField($arr[0], $arr[1]);
|
$this->formField($arr[0], $arr[1]);
|
||||||
}
|
}
|
||||||
} elseif(is_string($arrs)) {
|
} elseif(is_string($arrs)) {
|
||||||
echo $arr;
|
echo $arrs;
|
||||||
}
|
}
|
||||||
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
$this->formSubmit("<i class=\"icon-save\"></i> ".getMLText('save'));
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user