Fix #1025 feature

https://github.com/mybb/mybb/issues/1025
Merge pull request #1043 from Destroy666x/fix1025

Fix #1025 feature