Latest News: (loading..)
Issue Information
-
#000202
-
1 - Low
-
Fixed
-
2.3.1
-
2.3.3
Issue Confirmations
-
Yes (0)No (0)
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?
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);
}
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
The "Fix" just produced another error...
Sara
Updating status to: Confirmed
Updating version to: 2.3.1
Updating version to: 2.3.1
Updating status to: Fixed
Issue fixed in: 2.3.2
Issue fixed in: 2.3.2
Updating severity to: 1 - Low
Fix committed: https://github.com/osCommerce/oscommerce2/commit/063f6096f548a5dc89e97446120cbb09ed9ddd49
Fix committed: https://github.com/osCommerce/oscommerce2/commit/063f6096f548a5dc89e97446120cbb09ed9ddd49










