Updated #2 commit for messages_get_unread function

I think it should respect coding standards now..