Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#1816 closed Bug/Fehler (invalid)

Undefined index: customer_country_id + customer_zone_id

Reported by: web-looks.de Owned by: somebody
Priority: normal Milestone:
Component: Shop Version: 2.0.5.1

Description (last modified by Tomcraft)

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);

Attachments (0)

Change History (4)

comment:1 Changed 5 weeks ago by Tomcraft

  • Milestone set to modified-shop-2.0.5.2

comment:2 Changed 5 weeks ago by GTB

  • Resolution set to invalid
  • Status changed from new to closed

Sobald ein Kunde eingeloggt ist, werden auch die 2 Session Variablen gesetzt.

comment:3 Changed 5 weeks ago by Tomcraft

  • Description modified (diff)
  • Milestone modified-shop-2.0.5.2 deleted

Sofern du ein Log dafür bekommen hast, dann bitte gerne hier nochmal anhängen. Ansonsten können wir nicht nachvollziehen, wie es es zu einem Log kommen soll.

comment:4 Changed 5 weeks ago by web-looks.de

Vollständiger Log ist leider nicht mehr vorhanden. Falls mir die Warnung nochmals begegnet, reiche ich den gerne nach.

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.