Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login redirect in V2.2 RC2


designedbylucas

Recommended Posts

Hi there

If you look at the login.php file there's a chunk of code that looks a bit like:

    if (sizeof($navigation->snapshot) > 0) {
	  $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
	  $navigation->clear_snapshot();
	  tep_redirect($origin_href);
    } else {
	  tep_redirect(tep_href_link(FILENAME_DEFAULT));
    }

 

That's probably redirecting as if (sizeof($navigation->snapshot) > 0) {} is coming through as zero?

Link to comment
Share on other sites

  • 3 weeks later...

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

tep_redirect($origin_href);

} else {

if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_DEFAULT));

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...