From 9bca1c4ffdd7e7a54c5cb139c5df16dca7de8d89 Mon Sep 17 00:00:00 2001 From: Trevor Simonton Date: Tue, 11 Sep 2012 12:26:14 -0600 Subject: [PATCH] Replaced hard-coded ten minutes with constant --- uc_cart/uc_cart.pages.inc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uc_cart/uc_cart.pages.inc b/uc_cart/uc_cart.pages.inc index 5d7968b..14c6b69 100644 --- a/uc_cart/uc_cart.pages.inc +++ b/uc_cart/uc_cart.pages.inc @@ -92,8 +92,8 @@ function uc_cart_checkout() { // there has been no activity for 10 minutes (to prevent identity theft). if (uc_order_status_data($order->order_status, 'state') != 'in_checkout' || ($user->uid > 0 && $user->uid != $order->uid) || - $order->modified < REQUEST_TIME - 600) { - if (uc_order_status_data($order->order_status, 'state') == 'in_checkout' && $order->modified < REQUEST_TIME - 600) { + $order->modified < REQUEST_TIME - UC_CART_ORDER_TIMEOUT) { + if (uc_order_status_data($order->order_status, 'state') == 'in_checkout' && $order->modified < REQUEST_TIME - UC_CART_ORDER_TIMEOUT) { // Mark expired orders as abandoned. uc_order_update_status($order->order_id, 'abandoned'); } -- 1.7.4.msysgit.0