Modify ↓
Opened 7 years ago
Closed 7 years ago
#1595 closed Bug/Fehler (fixed)
Gefahr non-numeric value /includes/classes/shipping.php
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.4.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Um folgendes Warning zu verhindern
E_WARNING: LoggingManager: A non-numeric value encountered in File: /www/htdocs/w013d7f2/test/includes/classes/shipping.php on Line: 109
sollte man hier
if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {
....
}
abfragen ob SHIPPING_BOX_WEIGHT und SHIPPING_BOX_PADDING numeric sind.
Da es sich um Configuration-Konstanten handelt und man da ja keine Vorgabe des Typs INT im DB-Feld machen kann kommt es zu eingangs erwähntem Warning wenn jemand eines der beiden Felder in Konfiguration => Versand Optionen leer läßt oder besser leer macht. Per Default sind ja Werte eingetragen.
Gruß,
noRiddle
Attachments (0)
Change History (2)
comment:1 by , 7 years ago
| Component: | Admin → Shop |
|---|---|
| Milestone: | → modified-shop-2.0.5.0 |
| Reporter: | changed from to |
| Version: | → 2.0.4.2 |
comment:2 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 11680: