Skip to content

Commit 524bdfb

Browse files
committed
Fix PHP Warnings
1 parent eb36e14 commit 524bdfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebApp/BootstrapTheme/DynamicFieldRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __construct($theme, $component) {
1212
public function render() {
1313
$this->addClass('dynamic-fields');
1414
$this->addAttribute('data-role', 'dynamic-fields');
15-
$rc = $this->renderStartTag('div').
15+
$rc = $this->renderStartTag('div');
1616
// Template
1717
$rc .= $this->renderRow('IDNUM', NULL, TRUE);
1818
// Children come here

src/WebApp/Component/I18nFormElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getError($languageKey = NULL) {
4747
return I18N::_($this->errors[$languageKey]);
4848
}
4949
}
50-
return I18N::_($this->errors[$languageKey]);
50+
return isset($this->errors[$languageKey]) ? I18N::_($this->errors[$languageKey]) : NULL;
5151
}
5252

5353
public static function getPostValues($name, $languages) {

0 commit comments

Comments
 (0)