Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

809
 
810
 
810
 
shopping_cart.php
_> 11 <?php
  22 /*
<> 3 -  $Id: shopping_cart.php 809 2006-08-27 01:02:21Z hpdl $
   3+  $Id: shopping_cart.php 810 2006-08-27 01:13:17Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
162162             $Qattributes->bindInt(':language_id', $osC_Language->getID());
  163163             $Qattributes->execute();
  164164 
<> 165 -            while ($Qattributes->next()) {
   165+            if ($Qattributes->numberOfRows() > 0) {
166166               $this->_contents[$Qproducts->value('products_id')]['attributes'][$option_id] = array('options_id' => $option_id,
  167167                                                                                                    'options_values_id' => $value_id,
  168168                                                                                                    'products_options_name' => $Qattributes->value('products_options_name'),
     
 !
175175               } else {
  176176                 $this->_contents[$Qproducts->value('products_id')]['final_price'] -= $Qattributes->value('options_values_price');
  177177               }
<>  178+            } else {
   179+              unset($this->_contents[$Qproducts->value('products_id')]);
   180+              continue 2; // skip product
<_ 178181             }
  179182           }
  180183         }