Return true/false instead of 0/-1. Also check its return value in mvp_output_open().
Attach a file by drag & drop or click to upload