Permalink
Browse files

Change $PHP_SELF to $_SERVER['PHP_SELF'];

  • Loading branch information...
1 parent a3ee5e9 commit faa7296fbf713e9dea1760da3fea2315ca625feb unknown committed Aug 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 catalog/includes/modules/downloads.php
@@ -10,7 +10,7 @@
Released under the GNU General Public License
*/
- if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
+ if (!strstr($_SERVER['PHP_SELF'];, FILENAME_ACCOUNT_HISTORY_INFO)) {
// Get last order id for checkout_success
$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by orders_id desc limit 1");
$orders = tep_db_fetch_array($orders_query);
@@ -58,7 +58,7 @@
</table>
<?php
- if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
+ if (!strstr($_SERVER['PHP_SELF'];, FILENAME_ACCOUNT_HISTORY_INFO)) {
?>
<p><?php printf(FOOTER_DOWNLOAD, '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'); ?></p>

0 comments on commit faa7296

Please sign in to comment.