Update class/class.sync.php

Fixed an error in resync() function.