Fix #1025 master

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