Skip to content

Commit e18e2fa

Browse files
committed
Merge pull request #33 from qcubed/bugfix-WriteContextError
bugfix-WriteContextError
2 parents d3ce029 + 081ba09 commit e18e2fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/Control.trait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ public function ValidationReset() {
228228
* the wrapper class. Which is fine, since its faster.
229229
*/
230230
public function ReinforceValidationState() {
231-
231+
$objChildControls = $this->GetChildControls(false);
232232
if ($this->blnUseWrapper &&
233-
empty($this->GetChildControls(false))) { // don't apply states to parent controls
233+
count($objChildControls) == 0) { // don't apply states to parent controls
234234
if ($this->strValidationError) {
235235
$this->AddWrapperCssClass(Bootstrap::HasError);
236236
$this->strValidationState = Bootstrap::HasError;

0 commit comments

Comments
 (0)