fix php notice "array to string conversion"