Fix scrutinizer

This commit is contained in:
Maxime Kohlhaas 2022-05-22 00:36:53 +02:00
parent 0713c27a5d
commit 266a4b2891

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) {