Parse error: syntax error, unexpected ',', expecting ']' in ..pesq.class.php

Hello,

when in a grid research i use the field to choose whitch fields i want to see in the grid the following error appears:
Parse error: syntax error, unexpected ‘,’, expecting ‘]’ in …_ pesq.class.php online …

the problem is in that line of the code:

$val_a = (isset($this->Tab_ger_campos[$Cada_cmp[1]])) ? sc_convert_encoding($this->Tab_ger_campos[$Cada_cmp[1], “UTF-8”, $_SESSION[‘scriptcase’][‘charset’]) : $Cada_cmp;

if you notice the closing ] are missing in $ this-> Tab_ger_campos [$Cada_cmp[1]

I have the latest version of scriptcase with all the availables update and the problem seems appeared after the latest update

Thanks

Is there a space between $ and Cada_val? (and on other spots)? Looks odd to me.

the problem is the missing “]” and it is in the generated code by scriptcase

error: $this->Tab_ger_campos[$Cada_cmp[1]
no error: $this->Tab_ger_campos[$Cada_cmp][1]

that’s a bug.

If you can’t wait the bug to be solved, you can change the code by yourself by editing the php-file. Dont generate anymore or your changes are lost and you need to redo changes.