Modify ↓
Opened 5 years ago
Closed 5 years ago
#2003 closed Bug/Fehler (fixed)
Undefined index notice in account_checkout_express.php
| Reported by: | anonymous | Owned by: | Gerhard Waldemair |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.7.0 |
| Component: | Module | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
In der im Betreff genannten Datei account_checkout_express.php kommt es bei manchen Versandmodulen zu einer Notice:
Undefined index: methods in File: PATH_TO_FILE/account_checkout_express.php on Line: 125
Beispiel: /includes/modules/shipping/freeamount.php
Dort ist $this->quotes['methods'] unter bestimmten Bedingungen definiert, die, wenn sie nicht zutreffen zu der Notice führen wenn MODULE_SHIPPING_FREEAMOUNT_DISPLAY auf 'true' steht.
Möglicher Fix:
Zumindest im Modul freeamount müsste man also die method mitdefinieren in
$this->quotes = array('id' => $this->code,
'module' => $this->title);
also z.B. so:
$this->quotes = array('id' => $this->code,
'module' => $this->title);
if(strtolower(MODULE_SHIPPING_FREEAMOUNT_DISPLAY) == 'true') {
$this->quotes['methods'] = array(array('id' => $this->code));
}
Gruß,
noRiddle
Attachments (0)
Change History (2)
comment:1 by , 5 years ago
| Milestone: | → modified-shop-2.0.6.1 |
|---|
comment:2 by , 5 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 13515: