Fixes #1249 - memberlist.php "undefined"

Fixes https://github.com/mybb/mybb/issues/1249
Merge pull request #1250 from ATofighi/fix-1249

Fixes #1249 - memberlist.php "undefined"