2006-06-27, 09:09 PM
(This post was last modified: 2006-06-27, 09:53 PM by Dennis Tsang.)
There was a bug found in the update released today: The full package, changed files, and patch file all contain a line which will create a fatal error with PHP as follows:
To fix this:
Open usercp.php
Find:
This is a bug affects users joining secondary usergroups via the User CP.
Just a little bit of 1.2 code slipped in.
Quote:Fatal error: Call to undefined method databaseEngine::simple_select() in /path/to/mybb/usercp.php on line 1744
To fix this:
Open usercp.php
Find:
$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".intval($mybb->input['joingroup'])."'");
Replace with: $query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='".intval($mybb->input['joingroup'])."'");
This is a bug affects users joining secondary usergroups via the User CP.
Just a little bit of 1.2 code slipped in.