2007-01-28, 07:30 PM
In inc/class_session.php:
$query = $db->simple_select(TABLE_PREFIX."usergroups", "usergroup", "gid='".$mybb->user['banoldgroup']."'", array('limit' => 1));
$group = $db->fetch_array($query);
$mybb->user['usergroup'] = $group['usergroup'];
The problem is that there's no column with the name usergroup in the table usergroups. Do we need the query? It think it should be just this line:$mybb->user['usergroup'] = $mybb->user['banoldgroup'];