Update tasks.php

Solved "Error on server side" bug