  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
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 $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
38 | 38 | | tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set global_product_notifications = '" . (int)$product_global . "' where customers_info_id = '" . (int)$customer_id . "'"); |
| |
39 | 39 | | } elseif (sizeof($products) > 0) { |
| |
40 | 40 | | $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; |
  |
44 | 45 | | } |
| |
45 | 46 | | } |
| |
46 | 47 | | |