Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49204

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

$
0
0

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.

Vậy intval và isset khác nhau như thế nào, và việc thay đổi như thế có gây ra lỗi gì không, em fix rồi thì không thấy bị nữa, nhưng không biết được tác hại của nó thế nào. mong được giúp đỡ. cảm ơn @Group_Drupal_Vietnam


Viewing all articles
Browse latest Browse all 49204

Trending Articles