Fixed PHP5.4 problem with typecasting array to string