Jump to content



Latest News: (loading..)

Issue Information

Issue Confirmations

  • Yes (0)No (0)
Photo

product_info

Posted by Juto on 04 February 2011 - 11:59 PM

Undefined index:  products_id On line 30 File product_info.php

I know that a fix for this was commited for product_reviews:

after application_top:

bug fix ref: https://github.com/osCommerce/oscommerce2/commit/0519162913fe3c311e82763e8345afe54d180ba3
  if (!isset($_GET['products_id']) || !is_numeric($_GET['products_id'])) {
  tep_redirect(tep_href_link(FILENAME_REVIEWS));
  }

But that snippet redirects to file reviews. So what's the fix for product_info?

Fixed.

  if (isset($_GET['products_id'])) {
  $product_check_query = tep_db_query(....
  $product_check = tep_db_fetch_array($product_check_query);
}

Sorry, I was wrong!

The "Fix" just produced another error... :(

Sara

Updating status to: Confirmed
Updating version to: 2.3.1

Updating status to: Fixed
Issue fixed in: 2.3.2

changed fixed-in version to: 2.3.3