Opened 6 years ago

Last modified 6 years ago

#1816 closed Bug/Fehler

Undefined index: customer_country_id + customer_zone_id — at Initial Version

Reported by: web-looks.de Owned by: somebody
Priority: normal Milestone:
Component: Shop Version: 2.0.5.1
Keywords: Cc:
Blocked By: Blocking:

Description

Problem: Es fehlt die Prüfung, ob $_SERVER[customer_country_id] und $_SERVER[customer_zone_id] existieren.

/inc/xtc_get_tax_rate.inc.php
/inc/xtc_get_tax_description.inc.php

Suchen nach:

if (!isset($_SESSION['customer_id'])) {

Ersetzen mit:

if (empty($_SESSION['customer_id']) || empty($_SESSION['customer_country_id'])) {

Suchen nach:

$zone_id = $_SESSION['customer_zone_id'];

Ersetzen mit:

$zone_id = (!empty($_SESSION['customer_zone_id']) ? $_SESSION['customer_zone_id'] : 0);

Change History (0)

Note: See TracTickets for help on using tickets.