hello I have this error in the options in vb 4.2.5 php 7.4.15
PHP Code:
syntax error, unexpected 'usergroupid' (T_STRING) on line 9 in D:\wamp64\www\testmgc\includes\adminfunctions_options.php(596) : eval()'d code
#0 D:\wamp64\www\testmgc\includes\adminfunctions_options.php(53): print_setting_row(Array, Array)
#1 D:\wamp64\www\testmgc\admincp\options.php(1187): print_setting_group('uad_settings', 0)
#2 {main}
Fatal User Error: syntax error, unexpected 'usergroupid' (T_STRING) on line 9 in ....\includes\adminfunctions_options.php(596) : eval()'d code in ....\vb\vb.php on line 286
Trace Data:
#1 : vbstop() called in ....\includes\class_core.php on line 6089
#2 : vbulletin_error_handler() called in on line
#3 : trigger_error() called in ....\vb\vb.php on line 286
#4 : vB::handleException() called in on line
Var Type:
[ NULL ]
Var Data:
null
here is the part of the code
PHP Code:
" . eval('$options="";
$groups = $vbulletin->db->query_read("SELECT usergroupid, title FROM " . TABLE_PREFIX . "usergroup ORDER BY title");
$usergroups = array();
while ($usergroup = $vbulletin->db->fetch_array($groups))
{
$usergroups[$usergroup['usergroupid']] = $usergroup['title'];
}
foreach($usergroups AS $usergroupid => $usergrouptitle)
{
$options .= "\\t\\t<label for=\\"setting[$setting[varname]]$usergroupid\\" title=\\"item id: $usergroupid\\"><input type=\\"checkbox\\" tabindex=\\"1\\" name=\\"setting[$setting[varname]]"."[$usergroupid]\\" id=\\"setting[$setting[varname]][$usergroupid]\\" value=\\"$usergroupid\\"" . iif(strpos(",$setting[value],", ",$usergroupid,") !== false, \' checked="checked"\') . iif($vbulletin->debug, " title=\\"name="setting[$setting[varname]]"\\"") . " />$usergrouptitle</label><br />\\n";
}
return "<span class=\\"smallfont\\">\\n$options\\t</span>";') . "