Update cividiscount.php

Tweaks required to get this to work for me, please review.