Update main.php

fix warning.