Merge pull request #8178 from hregis/7.0_bug2

Fix: avoid Warning: A non-numeric value encountered
This commit is contained in:
Laurent Destailleur 2018-03-10 18:47:11 +01:00 committed by GitHub
commit aea3c164ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;