Modify ↓
#1552 closed Bug/Fehler (fixed)
Nicht vorhandene Variable $zone_id wird $_SESSION['customer_zone_id'] zugewiesen
| Reported by: | Owned by: | Gerhard Waldemair | |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.4.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
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:
/address_book_process.php
/create_account.php
/create_guest_account.php
Vorschlag zur Korrektur:
Suchen nach:
$_SESSION['customer_zone_id'] = $zone_id;
Ersetzen mit:
$_SESSION['customer_zone_id'] = (!empty($zone_id) ? (int)$zone_id : 0);
/address_book_process.php
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 by , 7 years ago
| Milestone: | → modified-shop-2.0.5.0 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:2 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

durch Änderungen für PHP7.3 bereits gefixt