Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

477
 
1739
 
1739
 
account_notifications.php
_> 11 <?php
  22 /*
<> 3 -  $Id: account_notifications.php,v 1.2 2003/05/22 14:24:54 hpdl Exp $
   3+  $Id: account_notifications.php 1739 2007-12-20 00:52:16Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
3838       tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set global_product_notifications = '" . (int)$product_global . "' where customers_info_id = '" . (int)$customer_id . "'");
  3939     } elseif (sizeof($products) > 0) {
  4040       $products_parsed = array();
<> 41 -      for ($i=0, $n=sizeof($products); $i<$n; $i++) {
  42 -        if (is_numeric($products[$i])) {
  43 -          $products_parsed[] = $products[$i];
   41+      reset($products);
   42+      while (list(, $value) = each($products)) {
   43+        if (is_numeric($value)) {
   44+          $products_parsed[] = $value;
<_ 4445         }
  4546       }
  4647