Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1552 closed Bug/Fehler (fixed)

Nicht vorhandene Variable $zone_id wird $_SESSION['customer_zone_id'] zugewiesen

Reported by: web-looks <info@…> Owned by: GTB
Priority: normal Milestone: modified-shop-
Component: Shop Version:


Sind die Bundesländer deaktiviert, wird die Variable $zone_id nicht erzeugt, im späteren Verlauf, aber $_SESSION[customer_zone_id] zugewiesen.

Schritte zur Nachstellung:

  • Konfiguration > Kunden Details > Bundesland = Nein

Betroffene Dateien:


Vorschlag zur Korrektur:

Suchen nach:

$_SESSION['customer_zone_id'] = $zone_id;

Ersetzen mit:

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


Suchen nach:

$_SESSION['customer_zone_id'] = (($zone_id > 0) ? (int) $zone_id : '0');

Ersetzen mit:

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

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by Tomcraft

  • Milestone set to modified-shop-
  • Owner changed from somebody to GTB
  • Status changed from new to assigned

comment:2 Changed 3 years ago by GTB

  • Resolution set to fixed
  • Status changed from assigned to closed

durch Änderungen für PHP7.3 bereits gefixt

comment:3 Changed 3 years ago by GTB

In 11720:

fix notice - fix #1552

comment:4 Changed 3 years ago by GTB

In 11762:

fix #1551 & #1552

comment:5 Changed 3 years ago by GTB

In 11763:

fix #1552

comment:6 Changed 3 years ago by GTB

In 11764:

fix #1552

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.