Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Wrong query
#1
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'];
Greets,
Michael
-------------
[Image: donation_drive_sig.png]


Messages In This Thread
[F] Wrong query - by Michael S. - 2007-01-28, 07:30 PM
RE: Wrong query - by Ryan Gordon - 2007-01-28, 08:30 PM
RE: [F] Wrong query - by Ryan Gordon - 2007-01-28, 08:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)