Fixed the osc_orders extension
http://frontaccounting.com/punbb/viewtopic.php?pid=21792#p21792
Credit: Geoffrey Walton