change all the object to array

as a result of using wordpress serializing engine the attachment object became a array, so i had to change all the places where attachment is object (->) to array ([''])