'{' at auto batch generation

Hello,

I experienced error, like this:
Parse error: syntax error, unexpected ‘{’ in /home/mitjamys/public_html/scriptcase/app/MojaPisarna_2016/form_KD_atributi_1/sc_logged.php on line 10

I did app with batch express generation tool. I did not change anything. What is wrong?

Please help me out. It is quite utgent!

This is sc_logged.php:

sc_logged.php
[TABLE=“border: 0, cellpadding: 0, cellspacing: 0”]
[TR]
[TD] 0| <?php
[COLOR=#000000] 1| //NM____NM__NFUNCTION__NM//
2|
3| function sc_logged($user, $ip = ‘’)
4| {
5| $str_sql = “SELECT date_login, ip FROM sec_logged WHERE login = '”. $user ."’ AND sc_session <> ‘SC_FAIL_SC’";
6|
7| sc_select(data, $str_sql);
8|
9| if({data} === FALSE || !isset($data->fields[0]))
10| {
11| $ip = ($ip == ‘’) ? $_SERVER[‘REMOTE_ADDR’] : $ip;
12| sc_logged_in($user, $ip);
13| return true;
14| }
15| else
16| {
17| sc_reset_apl_conf(“app_logged”);
18| sc_apl_status(“app_logged”, ‘on’);
19| sc_redir(“app_logged”, user=$user, ‘modal’);
20| return false;
21| }
22| }
23| [/COLOR][/TD]
[/TR]
[/TABLE]

Remove line 9 through 21 and test again. Then readd the lines 9,10,14,16,21 and retest then step by step readd the other lines and test.
Or just comment lines out. I use that always for finding bugs…