Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

477
 
1749
 
1749
 
checkout_success.php
_> 11 <?php
  22 /*
<> 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 $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2003 osCommerce
   8+  Copyright (c) 2007 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
     
 !
1818   }
  1919 
  2020   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+      }
2639     }
<> 27 -    if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);
<_ 2840 
  2941     tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
  3042   }