  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $ |
| |
| 3 | + | $Id: checkout_success.php 1749 2007-12-21 04:23:36Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2003 osCommerce |
| |
| 8 | + | Copyright (c) 2007 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
18 | 18 | | } |
| |
19 | 19 | | |
| |
20 | 20 | | if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { |
  |
21 | | - | $notify_string = 'action=notify&'; |
| |
22 | | - | $notify = $HTTP_POST_VARS['notify']; |
| |
23 | | - | if (!is_array($notify)) $notify = array($notify); |
| |
24 | | - | for ($i=0, $n=sizeof($notify); $i<$n; $i++) { |
| |
25 | | - | $notify_string .= 'notify[]=' . $notify[$i] . '&'; |
| |
| 21 | + | $notify_string = ''; |
| |
| 22 | + | |
| |
| 23 | + | if (isset($HTTP_POST_VARS['notify']) && !empty($HTTP_POST_VARS['notify'])) { |
| |
| 24 | + | $notify = $HTTP_POST_VARS['notify']; |
| |
| 25 | + | |
| |
| 26 | + | if (!is_array($notify)) { |
| |
| 27 | + | $notify = array($notify); |
| |
| 28 | + | } |
| |
| 29 | + | |
| |
| 30 | + | for ($i=0, $n=sizeof($notify); $i<$n; $i++) { |
| |
| 31 | + | if (is_numeric($notify[$i])) { |
| |
| 32 | + | $notify_string .= 'notify[]=' . $notify[$i] . '&'; |
| |
| 33 | + | } |
| |
| 34 | + | } |
| |
| 35 | + | |
| |
| 36 | + | if (!empty($notify_string)) { |
| |
| 37 | + | $notify_string = 'action=notify&' . substr($notify_string, 0, -1); |
| |
| 38 | + | } |
|
26 | 39 | | } |
  |
27 | | - | if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); |
  |
28 | 40 | | |
| |
29 | 41 | | tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); |
| |
30 | 42 | | } |