change $array in getPost() - method