mybb/mybb — pull request #1531 by Destroy666x (2014-10-19 20:57:46+00:00)
Title: Fix #1385

Get rid of the warnings by checking if the array is empty first.

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