Merge pull request #20976 from atm-maxime/fix_scrutinizer1

Fix scrutinizer
This commit is contained in:
Laurent Destailleur 2022-05-22 01:13:25 +02:00 committed by GitHub
commit 84f56a972b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -145,6 +145,8 @@ class mod_codeproduct_elephant extends ModeleProductCode
*/
public function getExample($langs, $objproduct = 0, $type = -1)
{
$exampleproduct = $exampleservice = '';
if ($type == 0 || $type == -1) {
$exampleproduct = $this->getNextValue($objproduct, 0);
if (!$exampleproduct) {

View File

@ -150,6 +150,12 @@ class MyObject extends CommonObject
*/
public $amount;
/**
* @var int Thirdparty ID
*/
public $socid; // both socid and fk_soc are used
public $fk_soc; // both socid and fk_soc are used
/**
* @var int Status
*/