Fix errors for processs.p_hasadvance.php