Skip to content

Commit

Permalink
Fixed issue #17194: Wrong error message in EM about parenthesis count
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 19, 2021
1 parent 079436a commit e8d5aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/helpers/expressions/em_core_helper.php
Expand Up @@ -1787,9 +1787,12 @@ private function HasSyntaxErrors()
break;
}
}
if ($nesting != 0) {
if ($nesting > 0) {
$this->RDP_AddError(sprintf(self::gT("Missing %s closing right parentheses"), $nesting), null);
}
if ($nesting < 0) {
$this->RDP_AddError(sprintf(self::gT("Missing %s closing left parentheses"), abs($nesting)), null);

This comment has been minimized.

Copy link
@Shnoulle

Shnoulle Mar 20, 2021

Collaborator

Missing %s opening left parentheses ? Or Extra %s closing right parentheses !?

}
return (count($this->RDP_errs) > 0);
}

Expand Down

0 comments on commit e8d5aae

Please sign in to comment.