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 Torsten Riemer, 7 years ago

Component: AdminShop
Milestone: modified-shop-2.0.5.0
Reporter: changed from anonymous to noRiddle
Version: 2.0.4.2

comment:2 by Gerhard Waldemair, 7 years ago

Resolution: fixed
Status: newclosed

In 11680:

fix #1595

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.