Fix #1025 feature

https://github.com/mybb/mybb/issues/1025