Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1592
 
1595
 
1595
 
shopping_cart.php
_> 106106           if ($this->in_cart($products_id_string)) {
  107107             $this->update_quantity($products_id_string, $qty, $attributes);
  108108           } else {
<> 109 -            $this->contents[$products_id_string] = array('qty' => $qty);
   109+            $this->contents[$products_id_string] = array('qty' => (int)$qty);
110110 // insert into database
  111111             if (tep_session_is_registered('customer_id')) tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, customers_basket_quantity, customers_basket_date_added) values ('" . (int)$customer_id . "', '" . tep_db_input($products_id_string) . "', '" . (int)$qty . "', '" . date('Ymd') . "')");
  112112 
     
 !
147147       }
  148148 
  149149       if (is_numeric($products_id) && isset($this->contents[$products_id_string]) && is_numeric($quantity) && ($attributes_pass_check == true)) {
<> 150 -        $this->contents[$products_id_string] = array('qty' => $quantity);
   150+        $this->contents[$products_id_string] = array('qty' => (int)$quantity);
<_ 151151 // update database
  152152         if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = '" . (int)$quantity . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id_string) . "'");
  153153