swipestripe / silverstripe-swipestripe

Ecommerce module for SilverStripe
http://swipestripe.com
33 stars 49 forks source link

Ensure that quantity is always numeric. #91

Closed bummzack closed 9 years ago

bummzack commented 9 years ago

I stumbled accross a weird issue, where quantity was of type SS_HTTPRequest, resulting in the following error message showing up in the logs:

[Warning] trim() expects parameter 1 to be string, object given

This PR ensures that quantity is always numeric.

stevie-mayhew commented 9 years ago

Thanks @bummzack