Fix #1023 feature

https://github.com/mybb/mybb/issues/1023
Merge pull request #1059 from Destroy666x/fix1023

Fix #1023 feature