Affiliate edit referral rate error

When you put nothing on the referral rate input box, it creates an SQL
error. We set it to 0 if no value is entered.