Fixed PHP notice about array to string conversion