Fix PHP undefined notice in Database Transfer