Re-commit fix for Undefined variable post data (see issue #4)