Update sync.php

Cannot break/continue 1 level
Merge pull request #103 from redoufu/patch-1

Update sync.php