qodana fix 3 : missing returns (#25332)

* qodana fix 3 : missing returns

* removing a duplicated line
This commit is contained in:
onhairech
2023-07-12 16:32:50 +02:00
committed by GitHub
parent e8ad953e12
commit e5e9f914e5
13 changed files with 119 additions and 95 deletions

View File

@@ -187,8 +187,9 @@ class FormContract
print '<form method="post" action="'.$page.'">';
print '<input type="hidden" name="action" value="setcontract">';
print '<input type="hidden" name="token" value="'.newToken().'">';
$this->select_contract($socid, $selected, $htmlname, $maxlength, $showempty, $showRef);
$result = $this->select_contract($socid, $selected, $htmlname, $maxlength, $showempty, $showRef);
print '<input type="submit" class="button smallpaddingimp valignmiddle" value="'.$langs->trans("Modify").'">';
print '</form>';
return $result;
}
}