Removing PHP warnings (possible Array to String conversations) and notices (WIP)
Fixing minor code errors

Reference: http://community.mybb.com/thread-137232.html