make cronmailer work with old version of php