Fix lỗi

Events happening in the community are now at Drupal community events on www.drupal.org.
ntsieucom's picture

Thay inval thanh isset có sao không.? ubercart cancel form checkout

Notice: Undefined index: cart_order in uc_cart_checkout_form_cancel() (line 340 of /home/truongsonjsc.com/public_html/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc).

Dòng 340:
function uc_cart_checkout_form_cancel($form, &$form_state) {
if (intval($_SESSION['cart_order']) > 0) {
uc_order_comment_save($_SESSION['cart_order'], 0, t('Customer cancelled this order from the checkout form.'));
unset($_SESSION['cart_order']);
}

Em đã fix lỗi bằng cách fix lỗi bằng các thay intval thành isset.

Read more
Subscribe with RSS Syndicate content