Alteração função array. http://ellislab.com/forums/viewthread/237400/