fixed warning on newer php version with array to string conversion