Modify

Opened 3 years ago

Closed 3 years ago

#2318 closed Bug/Fehler (fixed)

Division by zero in File: /includes/classes/xtcPrice.php on Line: 759

Reported by: web-looks.de Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.8.0
Component: Shop Version: 2.0.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Wenn ein Artikel 0€ kostet und Kundengruppenrabatt aktiviert ist.

Vorschlag zur Korrektur:

/includes/classes/xtcPrice.php

Suchen nach:

if ($discount = $this->xtcCheckDiscount($pID)) {

Ersetzen mit:

if ($pPrice > 0 && $discount = $this->xtcCheckDiscount($pID)) {

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14779:

fix #2318 - prevent division by zero

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.