Avoid PHP warning on restore