fix for Array to String conversion error in prep for php 5.4