Merge pull request #5554 from olsesacl/#5514

FIX #5514 PHP7 Warning on barcode module's configuration page
This commit is contained in:
Laurent Destailleur 2016-07-27 11:13:49 +02:00 committed by GitHub
commit 51566970ce
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
* @param string $type type of barcode (EAN, ISBN, ...)
* @return string Value if OK, '' if module not configured, <0 if KO
*/
function getNextValue($objproduct,$type='')
function getNextValue($objproduct=null,$type='')
{
global $db,$conf;

View File

@ -91,7 +91,7 @@ abstract class ModeleNumRefBarCode
* @param int $type Type
* @return string Value
*/
function getNextValue($objsoc=0,$type=-1)
function getNextValue($objsoc=null,$type=-1)
{
global $langs;
return $langs->trans("Function_getNextValue_InModuleNotWorking");