sorry i have done it myself. I have had a habit of asking on here and then doing it myself. Sorry guys but here is the code i changed:
PHP Code:
// display sub forums
$permissions = $getperms;
//Forum info
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,title,forumid');
unset($iforumcache);
while ($forum=$DB_site->fetch_array($forums)) {
$iforumcache["$forum[parentid]"]["$forum[title]"]["$forum[forumid]"] = $forum;
}
$DB_site->free_result($forums);
unset($forum);