Fix: avoid Warning: A non-numeric value encountered

This commit is contained in:
Regis Houssin 2018-02-12 08:21:35 +01:00
parent 60a848de5a
commit 40fe3849dc

View File

@ -1649,7 +1649,7 @@ class Product extends CommonObject
* @param string $newdefaultvatcode Default vat code * @param string $newdefaultvatcode Default vat code
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
function updatePrice($newprice, $newpricebase, $user, $newvat='',$newminprice='', $level=0, $newnpr=0, $newpbq=0, $ignore_autogen=0, $localtaxes_array=array(), $newdefaultvatcode='') function updatePrice($newprice, $newpricebase, $user, $newvat='',$newminprice=0, $level=0, $newnpr=0, $newpbq=0, $ignore_autogen=0, $localtaxes_array=array(), $newdefaultvatcode='')
{ {
global $conf,$langs; global $conf,$langs;