fixed controller forum/index()

and some code in the forum_model
Merge pull request #1 from MrGate/master

Merge