Fix #1023 feature

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