2
0
forked from Wavyzz/dolibarr

Clean code - Fix phpstan warning

This commit is contained in:
Laurent Destailleur
2024-08-03 13:44:38 +02:00
parent 49808847b9
commit d1f1c0aa57
9 changed files with 5 additions and 40 deletions

View File

@@ -447,9 +447,6 @@ class modKnowledgeManagement extends DolibarrModules
$myTmpObjects['KnowledgeRecord'] = array('includerefgeneration' => 0, 'includedocgeneration' => 0);
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
if ($myTmpObjectKey == 'KnowledgeRecord') {
continue;
}
if ($myTmpObjectArray['includerefgeneration']) {
$src = DOL_DOCUMENT_ROOT.'/install/doctemplates/knowledgemanagement/template_knowledgerecords.odt';
$dirodt = DOL_DATA_ROOT.'/doctemplates/knowledgemanagement';