Fix osc_run_hook('pre_user_post') called when error
Merge pull request #1402 from emanwebdev/patch-37

Fix osc_run_hook('pre_user_post') called when error