Here comes the patch.
patch.svn.diff
IMPORTANT NOTE:
If it does not work for your copy of X-Cart consult with your technical support engineer - it may be caused by incompatibility with some of the customizations you might have or with our version of X-Cart or it could be applied wrongly.