/**
* Returns the expiry date for the given product version and transaction.
*
* @param $txnid Transaction in which the product version was purchased
* @param $vid Product version for which expiry date is sought.
* @return Expiry date (local timestamp) for the given product version
* purchased as part of the transaction given.
*/
function ec_recurring_product_get_expiry($txnid, $vid) {
return db_result(db_query_range('SELECT expiry FROM {ec_recurring_expiration} WHERE txnid = %d
AND vid = %d AND rid <= 0 ORDER BY expiry DESC', 0 , 1));
}

---------------------------------------
shouldn't passed parameters be $txnid, $vid but not 0, 1 ?

--------------------------------------

Comments

Phillip Mc’s picture

I'm getting strange expiry dates on 3.x-dev. Any progress on this bug report?

sammys’s picture

Assigned: Unassigned » sammys
Status: Active » Fixed

Thank you for submitting this bug report. The issue has been resolved and the fix will be available in 5.x-3.6 and later. The development snapshot will have this fix incorporated in snapshots after 2008-Dec-04.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.