Update Forum.php

Should fix the problem for XenForo 1.2. You need to confirm, I've just made a quick test.