fix amo_curl_post_mass for compatibility with php 5.2