Skip to content

Commit

Permalink
Change $PHP_SELF to $_SERVER['PHP_SELF'];
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Aug 14, 2011
1 parent a3ee5e9 commit faa7296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/includes/modules/downloads.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit faa7296

Please sign in to comment.