Fix arg type to preg_replace() with cast
This commit is contained in:
parent
94851b9105
commit
05fbb7257c
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ if (empty($reshook)) {
|
|||
}
|
||||
|
||||
$tmpvat = price2num(preg_replace('/\s*\(.*\)/', '', $tva_tx));
|
||||
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', $prod->tva_tx));
|
||||
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', (string) $prod->tva_tx));
|
||||
|
||||
// Set unit price to use
|
||||
if (!empty($price_ht) || $price_ht === '0') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue