Fix PHP warnings when post_type is an array