Skip to content

Commit 4ae34e4

Browse files
committed
Zbozi: fixed ZboziItem::setPriceBeforeDiscount()
1 parent 2a44124 commit 4ae34e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Feeds/Zbozi/ZboziItem.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ public function getPriceBeforeDiscount()
219219
*/
220220
public function setPriceBeforeDiscount($priceBeforeDiscount)
221221
{
222-
$this->priceBeforeDiscount = $this->formatPrice($priceBeforeDiscount);
222+
$this->priceBeforeDiscount = $priceBeforeDiscount !== NULL
223+
? $this->formatPrice($priceBeforeDiscount)
224+
: NULL;
223225
return $this;
224226
}
225227

0 commit comments

Comments
 (0)