@@ -291,8 +291,9 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | public function addItemInToolbar($caption, $icon = NULL, $callback = NULL) { |
| 293 | 293 | $result = $this->addInToolbar($caption, $callback); |
| 294 | - if (isset($icon) && method_exists($result, "addIcon")) |
|
| 295 | - $result->addIcon($icon); |
|
| 294 | + if (isset($icon) && method_exists($result, "addIcon")) { |
|
| 295 | + $result->addIcon($icon); |
|
| 296 | + } |
|
| 296 | 297 | return $result; |
| 297 | 298 | } |
| 298 | 299 | |
@@ -481,8 +482,9 @@ discard block |
||
| 481 | 482 | protected function _compileForm() { |
| 482 | 483 | if (isset($this->_form)) { |
| 483 | 484 | $noValidate = ""; |
| 484 | - if (\sizeof($this->_form->getValidationParams()) > 0) |
|
| 485 | - $noValidate = "novalidate"; |
|
| 485 | + if (\sizeof($this->_form->getValidationParams()) > 0) { |
|
| 486 | + $noValidate = "novalidate"; |
|
| 487 | + } |
|
| 486 | 488 | $this->wrapContent("<form class='" . $this->_form->getProperty('class') . "' id='frm-" . $this->identifier . "' name='frm-" . $this->identifier . "' " . $noValidate . ">", "</form>"); |
| 487 | 489 | } |
| 488 | 490 | } |