Fix #1025 master

https://github.com/mybb/mybb/issues/1025
Merge pull request #1044 from Destroy666x/fix1025m

Fix #1025 master