Skip to content

Commit ca00bda

Browse files
fballianokiatngkyrena
authored
Fixed passing null for number_format is deprecated for downloadable products (#3382)
Co-authored-by: Ng Kiat Siong <[email protected]> Co-authored-by: kyrena <[email protected]>
1 parent 4ece531 commit ca00bda

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable

1 file changed

+1
-1
lines changed

app/code/core/Mage/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function getLinkData()
227227
*/
228228
public function getPriceValue($value)
229229
{
230-
return number_format($value, 2, null, '');
230+
return number_format($value ?? 0, 2, null, '');
231231
}
232232

233233
/**

0 commit comments

Comments
 (0)