I currently have a little script on my osc site that is acting up.
It's really a simple rewrite of the 'featured' module.
It counts item quantities and adjusts when item is sold.
The problem is that when the qty gets to zero, I end up with "Divison By Zero" errors.
Can this be remedied with a simple 'if' statement?
I'm not a php pro.