Fix PHP warning on MyBB installation/upgrade

Fixes PHP warning on MyBB installation/upgrade